Fix failing UIExplorer test (after isValid removal)

This commit is contained in:
Alex Akers 2015-08-14 05:07:49 -07:00
parent a2c51b3b28
commit 5c0805b071
1 changed files with 3 additions and 3 deletions

View File

@ -178,15 +178,15 @@ RCT_EXPORT_METHOD(test:(__unused NSString *)a
RCTBridge *bridge = [[RCTBridge alloc] initWithBundleURL:nil
moduleProvider:nil
launchOptions:nil];
__weak id rootContentView;
__weak UIView *rootContentView;
@autoreleasepool {
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@""];
RUN_RUNLOOP_WHILE(!(rootContentView = [rootView valueForKey:@"contentView"]))
XCTAssertTrue([rootContentView isValid], @"RCTContentView should be valid");
XCTAssertTrue(rootContentView.userInteractionEnabled, @"RCTContentView should be valid");
(void)rootView;
}
XCTAssertFalse([rootContentView isValid], @"RCTContentView should have been invalidated");
XCTAssertFalse(rootContentView.userInteractionEnabled, @"RCTContentView should have been invalidated");
}
- (void)testUnderlyingBridgeIsDeallocated