Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Run style layer tests headlessly #7684

Merged
merged 2 commits into from
Jan 11, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions platform/darwin/test/MGLStyleLayerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ - (void)setUp {
_mapView = [[MGLMapView alloc] initWithFrame:CGRectMake(0, 0, 256, 256) styleURL:styleURL];
[vc.view addSubview:_mapView];
#else
NSWindowController *windowController = [[NSWindowController alloc] initWithWindowNibName:@"MGLStyleLayerTests" owner:self];
NSView *contentView = windowController.window.contentView;
_mapView = [[MGLMapView alloc] initWithFrame:contentView.bounds styleURL:styleURL];
[contentView addSubview:_mapView];
[windowController showWindow:nil];
_mapView = [[MGLMapView alloc] initWithFrame:NSMakeRect(0, 0, 256, 256) styleURL:styleURL];
#endif
_mapView.delegate = self;
XCTAssertNil(_mapView.style);
Expand Down