summaryrefslogtreecommitdiff
path: root/test/ios/KIFTestActor+MapboxGL.m
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-02-09 18:01:40 -0800
committerJustin R. Miller <incanus@codesorcery.net>2015-02-09 18:01:40 -0800
commitd4d4cd44151423d374e373798f09d12157babc27 (patch)
treeede100edc58475b969b62fba8f3bcb219b29beda /test/ios/KIFTestActor+MapboxGL.m
parent0ee6044ccf49bb32a25c57ce25af15bcd58ca77b (diff)
downloadqtlocation-mapboxgl-d4d4cd44151423d374e373798f09d12157babc27.tar.gz
move iOS code from gl-cocoa to this project
Diffstat (limited to 'test/ios/KIFTestActor+MapboxGL.m')
-rw-r--r--test/ios/KIFTestActor+MapboxGL.m24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/ios/KIFTestActor+MapboxGL.m b/test/ios/KIFTestActor+MapboxGL.m
new file mode 100644
index 0000000000..b267e0c0be
--- /dev/null
+++ b/test/ios/KIFTestActor+MapboxGL.m
@@ -0,0 +1,24 @@
+#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