Return viewsWithNewFrame instead of passing it around

Reviewed By: nicklockwood

Differential Revision: D2663281

fb-gh-sync-id: 6218c2ff68f7e4d8132ef1f95fb22f5007434319
This commit is contained in:
Pieter De Baets
2015-11-17 06:35:46 -08:00
committed by facebook-github-bot-4
parent 532c9112b4
commit c043c68e7e
5 changed files with 14 additions and 12 deletions

View File

@@ -84,7 +84,7 @@
[parentView insertReactSubview:footerView atIndex:2];
parentView.reactTag = @1; // must be valid rootView tag
[parentView collectRootUpdatedFrames:nil];
[parentView collectRootUpdatedFrames];
XCTAssertTrue(CGRectEqualToRect([parentView measureLayoutRelativeToAncestor:parentView], CGRectMake(0, 0, 440, 440)));
XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets([parentView paddingAsInsets], UIEdgeInsetsMake(10, 10, 10, 10)));