From d9a16f22e64acb33a8cb37dfb0cebb2448676a75 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Thu, 15 Sep 2016 10:56:41 -0700 Subject: [PATCH] Remove test for reverted behavior --- .../ASDisplayNodeLayoutTests.mm | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/AsyncDisplayKitTests/ASDisplayNodeLayoutTests.mm b/AsyncDisplayKitTests/ASDisplayNodeLayoutTests.mm index a2156291..305824ec 100644 --- a/AsyncDisplayKitTests/ASDisplayNodeLayoutTests.mm +++ b/AsyncDisplayKitTests/ASDisplayNodeLayoutTests.mm @@ -43,31 +43,6 @@ ASXCTAssertEqualSizes(buttonNode.calculatedSize, nodeSize, @"Automatic measurement pass should have happened in layout pass"); } -- (void)testMeasureOnLayoutIfNotHappenedBeforeForRangeManagedNodes -{ - CGSize nodeSize = CGSizeMake(100, 100); - - ASStaticSizeDisplayNode *displayNode = [ASStaticSizeDisplayNode new]; - displayNode.staticSize = nodeSize; - - ASButtonNode *buttonNode = [ASButtonNode new]; - [displayNode addSubnode:buttonNode]; - - [displayNode enterHierarchyState:ASHierarchyStateRangeManaged]; - - displayNode.frame = {.size = nodeSize}; - buttonNode.frame = {.size = nodeSize}; - - ASXCTAssertEqualSizes(displayNode.calculatedSize, CGSizeZero, @"Calculated size before measurement and layout should be 0"); - ASXCTAssertEqualSizes(buttonNode.calculatedSize, CGSizeZero, @"Calculated size before measurement and layout should be 0"); - - // Trigger layout pass without a maeasurment pass before - [displayNode.view layoutIfNeeded]; - - ASXCTAssertEqualSizes(displayNode.calculatedSize, nodeSize, @"Automatic measurement pass should have happened in layout pass"); - ASXCTAssertEqualSizes(buttonNode.calculatedSize, nodeSize, @"Automatic measurement pass should have happened in layout pass"); -} - #if DEBUG - (void)testNotAllowAddingSubnodesInLayoutSpecThatFits {