diff --git a/Tests/ASLayoutEngineTests.mm b/Tests/ASLayoutEngineTests.mm index 4094dbc90..bce521526 100644 --- a/Tests/ASLayoutEngineTests.mm +++ b/Tests/ASLayoutEngineTests.mm @@ -124,9 +124,6 @@ - (void)testSetNeedsLayoutAndNormalLayoutPass */ - (void)testLayoutTransitionWithAsyncMeasurement { - // BUG: There is an extra main-thread layout pass run on nodeC, and its result is discarded. - static BOOL enforceCorrectBehavior = NO; - [self stubCalculatedLayoutDidChange]; [self runFirstLayoutPassWithFixture:fixture1]; @@ -167,15 +164,6 @@ - (void)testLayoutTransitionWithAsyncMeasurement injectedMainThreadWork = ^{ injectedMainThreadWorkDone = YES; - // BUG: nodeC survives but gets a layout update during transition. - // When this layout pass comes down, its parent will set its new frame which will - // trigger the layout pass to go down into it and we will measure against that new bounds. - // The new bounds will be the post-transition size. - if (!enforceCorrectBehavior) { - auto postTransitionSize = [fixture2 layoutForNode:nodeC].size; - OCMExpect([nodeC.mock calculateLayoutThatFits:ASSizeRangeMake(postTransitionSize)]).onMainThread(); - } - [window layoutIfNeeded]; // Ensure we're still on the old layout. We should stay on this until the transition completes.