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

Issue 2641253002: Rewrite LayoutNG margin collapsing/floats unit tests (Closed)

Created:
3 years, 11 months ago by Gleb Lanbin
Modified:
3 years, 11 months ago
Reviewers:
ikilpatrick
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, dgrogan+ng_chromium.org, atotic+reviews_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews, kinuko+watch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rewrite LayoutNG margin collapsing/floats unit tests This patch rewrites PositionFloatFragments, CollapsingMarginsCase2WithFloats, CollapsingMarginsCase1WithFloats and PositionFloatInsideEmptyBlocks(new). Also it makes NGBlockLayoutAlgorithmTest to be based on RenderingTest. That allows to use setBodyInnerHTML to set HTML representation of tests and enables unittests to access old layout objects like FloatingObjects etc. The tests that are being changed here are temporarily marked as DISABLED. That's because the old tests are not fully correct. For the new float/margins collapsing algorithm these new tests will set correct expectations and will be enabled once the new code checked in. BUG=635619 Review-Url: https://codereview.chromium.org/2641253002 Cr-Commit-Position: refs/heads/master@{#445900} Committed: https://chromium.googlesource.com/chromium/src/+/59c1ac58a65bb815893621feb68fe228e051a2b4

Patch Set 1 #

Patch Set 2 : git rebase-update #

Total comments: 4

Patch Set 3 : git rebase-update + more tests #

Total comments: 4

Patch Set 4 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -399 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc View 1 2 3 4 chunks +747 lines, -384 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_units.h View 1 2 3 chunks +1 line, -15 lines 0 comments Download

Messages

Total messages: 37 (27 generated)
Gleb Lanbin
3 years, 11 months ago (2017-01-19 22:21:25 UTC) #2
Gleb Lanbin
On 2017/01/19 22:21:25, Gleb Lanbin wrote: this patch is based on http://crrev.com/2642823008(on review).
3 years, 11 months ago (2017-01-19 22:21:44 UTC) #3
ikilpatrick
tests look good, can i have one last look after you rebase? https://codereview.chromium.org/2641253002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc ...
3 years, 11 months ago (2017-01-23 23:26:51 UTC) #8
Gleb Lanbin
PTAL https://codereview.chromium.org/2641253002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2641253002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode201 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:201: " height: 200px;" On 2017/01/23 23:26:50, ikilpatrick wrote: ...
3 years, 11 months ago (2017-01-24 19:31:16 UTC) #9
ikilpatrick
lgtm https://codereview.chromium.org/2641253002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2641253002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode257 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:257: // The left float to be positioned at ...
3 years, 11 months ago (2017-01-24 22:05:37 UTC) #17
Gleb Lanbin
https://codereview.chromium.org/2641253002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2641253002/diff/60001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode257 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:257: // The left float to be positioned at first-child's ...
3 years, 11 months ago (2017-01-24 22:30:43 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641253002/100001
3 years, 11 months ago (2017-01-25 01:06:23 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/349425)
3 years, 11 months ago (2017-01-25 01:11:32 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641253002/100001
3 years, 11 months ago (2017-01-25 01:22:32 UTC) #34
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 01:29:21 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/59c1ac58a65bb815893621feb68f...

Powered by Google App Engine
This is Rietveld 408576698