Files
MapLibreParticleLab/test/ios/KIFTestActor+MapboxGL.m
Minh Nguyễn 1dc2cbc280 Test inset MGLMapView
Verify that the ornaments hug the `MGLMapView` when it’s smaller than the view controller’s root view.
2015-04-24 13:30:50 -07:00

26 lines
558 B
Objective-C

#import "KIFTestActor+MapboxGL.h"
#import "MapboxGL.h"
#import <KIF/UIApplication-KIFAdditions.h>
@implementation KIFTestActor (MapboxGL)
- (UIWindow *)window {
return [[UIApplication sharedApplication] statusBarWindow];
}
- (MGLTViewController *)viewController {
return (MGLTViewController *)[[tester.mapView nextResponder] nextResponder];
}
- (MGLMapView *)mapView {
return (MGLMapView *)[tester waitForViewWithAccessibilityLabel:@"Map"];
}
- (UIView *)compass {
return [tester waitForViewWithAccessibilityLabel:@"Compass"];
}
@end