Files
MapLibreParticleLab/test/ios/KIFTestActor+MapboxGL.m
2015-02-09 18:01:40 -08:00

25 lines
606 B
Objective-C

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