Files
MapLibreParticleLab/test/ios/KIFTestActor+MapboxGL.m
2015-08-21 11:01:07 -07:00

26 lines
556 B
Objective-C

#import "KIFTestActor+MapboxGL.h"
#import "Mapbox.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