diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2019-06-03 13:31:30 -0700 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2019-06-03 13:31:30 -0700 |
commit | 532012522ded6651bd93d5a3628dd6dde056f72e (patch) | |
tree | fbdbd27ddfd40e9fef7520afa48d79557c7ac6df | |
parent | dba39b35fcf2abc4218e47df45a8ea44c8a0a607 (diff) | |
download | qtlocation-mapboxgl-532012522ded6651bd93d5a3628dd6dde056f72e.tar.gz |
[ios] added a few comments
-rw-r--r-- | platform/ios/Integration Tests/MGLTabBarControllerTests.m | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/ios/Integration Tests/MGLTabBarControllerTests.m b/platform/ios/Integration Tests/MGLTabBarControllerTests.m index ca4718c3e0..7d72e1679f 100644 --- a/platform/ios/Integration Tests/MGLTabBarControllerTests.m +++ b/platform/ios/Integration Tests/MGLTabBarControllerTests.m @@ -1,6 +1,11 @@ -#import "MGLTabBarControllerTests.h" -// Will lack of access token impact CADisplayLink being called? +#import "MGLMapViewIntegrationTest.h" + +@interface MGLTabBarControllerTests : MGLMapViewIntegrationTest + +@property (nonatomic) UIViewController *viewController; +@property (nonatomic) UITabBarController *tabController; +@end @implementation MGLTabBarControllerTests @@ -9,6 +14,7 @@ UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"IntegrationTest" bundle:[NSBundle mainBundle]]; [self.window setRootViewController:(UITabBarController *)[storyboard instantiateViewControllerWithIdentifier:@"TabController"]]; + // Access the tab controller from the story board, then access one of the childViewControllers. self.tabController = (UITabBarController *)self.window.rootViewController; self.viewController = self.tabController.childViewControllers[0]; @@ -49,6 +55,7 @@ } }]; + // This delays the test completion so that the tabs can switch repeatedly. [self waitForExpectations:@[expectation] timeout:10]; } |