Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Dec 1, 2017
1 parent 3fcae88 commit 8d33fd4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Tests/ASScrollNodeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ - (void)testAutomaticallyManagesContentSizeUnderflow

self.subnode.style.preferredSize = subnodeSize;

ASLayout *layout = [self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layout];

ASXCTAssertEqualSizes(layout.size, parentSize);
ASXCTAssertEqualSizes(self.scrollNode.calculatedSize, parentSize);
ASXCTAssertEqualSizes(self.scrollNode.view.contentSize, subnodeSize);
}

Expand All @@ -84,10 +84,10 @@ - (void)testAutomaticallyManagesContentSizeOverflow

self.subnode.style.preferredSize = subnodeSize;

ASLayout *layout = [self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layout];

ASXCTAssertEqualSizes(layout.size, parentSize);
ASXCTAssertEqualSizes(self.scrollNode.calculatedSize, parentSize);
ASXCTAssertEqualSizes(self.scrollNode.view.contentSize, subnodeSize);
}

Expand All @@ -99,10 +99,10 @@ - (void)testAutomaticallyManagesContentSizeWithSizeRangeSmallerThanParentSize

self.subnode.style.preferredSize = subnodeSize;

ASLayout *layout = [self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layout];

ASXCTAssertEqualSizes(layout.size, sizeRange.max);
ASXCTAssertEqualSizes(self.scrollNode.calculatedSize, sizeRange.max);
ASXCTAssertEqualSizes(self.scrollNode.view.contentSize, subnodeSize);
}

Expand All @@ -114,10 +114,10 @@ - (void)testAutomaticallyManagesContentSizeWithSizeRangeBiggerThanParentSize

self.subnode.style.preferredSize = subnodeSize;

ASLayout *layout = [self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layout];

ASXCTAssertEqualSizes(layout.size, sizeRange.min);
ASXCTAssertEqualSizes(self.scrollNode.calculatedSize, sizeRange.min);
ASXCTAssertEqualSizes(self.scrollNode.view.contentSize, subnodeSize);
}

Expand All @@ -129,10 +129,10 @@ - (void)testAutomaticallyManagesContentSizeWithInvalidCalculatedSizeForLayout

self.subnode.style.preferredSize = subnodeSize;

ASLayout *layout = [self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layoutThatFits:sizeRange parentSize:parentSize];
[self.scrollNode layout];

ASXCTAssertEqualSizes(layout.size, subnodeSize);
ASXCTAssertEqualSizes(self.scrollNode.calculatedSize, subnodeSize);
ASXCTAssertEqualSizes(self.scrollNode.view.contentSize, subnodeSize);
}

Expand Down

0 comments on commit 8d33fd4

Please sign in to comment.