Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc

Issue 2513833002: Fix the order of expected and actual values in PercentageResolutionSize test. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
index 5c176ccf199f8990a2f738dade6bd4234cfc9b83..8750747d40fa0820d34e980a0e694832cd267b38 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
@@ -555,12 +555,12 @@ TEST_F(NGBlockLayoutAlgorithmTest, PercentageResolutionSize) {
NGLogicalSize(LayoutUnit(100), NGSizeIndefinite));
NGPhysicalFragment* frag = RunBlockLayoutAlgorithm(space, first_child);
- EXPECT_EQ(frag->Width(), LayoutUnit(kWidth + kPaddingLeft));
- EXPECT_EQ(frag->Type(), NGPhysicalFragmentBase::FragmentBox);
+ EXPECT_EQ(LayoutUnit(kWidth + kPaddingLeft), frag->Width());
+ EXPECT_EQ(NGPhysicalFragmentBase::FragmentBox, frag->Type());
ASSERT_EQ(frag->Children().size(), 1UL);
const NGPhysicalFragmentBase* child = frag->Children()[0];
- EXPECT_EQ(child->Width(), LayoutUnit(12));
+ EXPECT_EQ(LayoutUnit(12), child->Width());
}
// A very simple auto margin case. We rely on the tests in ng_length_utils_test
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698