diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-11-02 18:41:30 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-11-02 21:12:45 -0700 |
commit | 7c68d7773d208993c9ebb76ac42a440e1a27c29a (patch) | |
tree | cba5aee4208d54c7d866ff7051b39fc251c2ed51 /platform/darwin/test/MGLStyleLayerTests.m | |
parent | 0ee119ad763f9882dd063530081819e281402a7b (diff) | |
download | qtlocation-mapboxgl-7c68d7773d208993c9ebb76ac42a440e1a27c29a.tar.gz |
[macos] Enabled runtime styling tests
Added the style layer tests to the test bundle target.
Set the access token to a bogus access token before running any tests. The macOS implementation of MGLMapView doesn’t even attempt to set a default style if the access token is missing, because in macosapp, the access token may be set asynchronously by the user when the preferences window appears.
Diffstat (limited to 'platform/darwin/test/MGLStyleLayerTests.m')
-rw-r--r-- | platform/darwin/test/MGLStyleLayerTests.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLStyleLayerTests.m b/platform/darwin/test/MGLStyleLayerTests.m index b16bcfed56..74c6b2f906 100644 --- a/platform/darwin/test/MGLStyleLayerTests.m +++ b/platform/darwin/test/MGLStyleLayerTests.m @@ -13,6 +13,7 @@ [vc.view addSubview:_mapView]; _mapView.delegate = self; #else + [MGLAccountManager setAccessToken:@"pk.feedcafedeadbeefbadebede"]; NSWindowController *windowController = [[NSWindowController alloc] initWithWindowNibName:@"MGLStyleLayerTests" owner:self]; [windowController showWindow:nil]; #endif |