[ios, macos] Fixed incorrect assignment in style layer tests

Fixes #5992.
This commit is contained in:
Minh Nguyễn
2016-08-13 00:40:27 -07:00
committed by Fredrik Karlsson
parent 2217e05f5e
commit 6856722b1e

View File

@@ -5,7 +5,7 @@
- (void)setUp {
[super setUp];
#if TARGET_OS_IPHONE
UIApplication *app = [[UIApplication sharedApplication] delegate];
UIApplication *app = [UIApplication sharedApplication];
UIViewController *vc = [[UIViewController alloc] init];
app.keyWindow.rootViewController = vc;
[vc view]; // Force load xib