From 6b154f28abfa30c21e3447d80f4c6255b029daf6 Mon Sep 17 00:00:00 2001 From: Vlad Solomenchuk Date: Tue, 8 Oct 2019 11:21:07 -0700 Subject: [PATCH] test --- Tests/ASViewControllerTests.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/ASViewControllerTests.mm b/Tests/ASViewControllerTests.mm index 3eea88d8e..ede0ab144 100644 --- a/Tests/ASViewControllerTests.mm +++ b/Tests/ASViewControllerTests.mm @@ -24,6 +24,8 @@ @implementation ASViewControllerTests - (void)testThatAutomaticSubnodeManagementScrollViewInsetsAreApplied { UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + [window makeKeyAndVisible]; + ASDisplayNode *node = [[ASDisplayNode alloc] init]; node.automaticallyManagesSubnodes = YES; ASScrollNode *scrollNode = [[ASScrollNode alloc] init]; @@ -42,6 +44,8 @@ - (void)testThatAutomaticSubnodeManagementScrollViewInsetsAreApplied - (void)testThatViewControllerFrameIsRightAfterCustomTransitionWithNonextendedEdges { UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; + [window makeKeyAndVisible]; + ASDisplayNode *node = [[ASDisplayNode alloc] init]; ASViewController *vc = [[ASViewController alloc] initWithNode:node];