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

Issue 2165763002: Fix layout tests that would fail if ScrollAnchoring was promoted to experimental (Closed)

Created:
4 years, 5 months ago by ymalik
Modified:
4 years, 4 months ago
Reviewers:
skobes
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix layout tests that would fail if ScrollAnchoring was promoted to experimental A lot of these tests were failing because the test expectations such as 'shouldBe' and 'shouldBeGreaterThan', etc were actively modifying the DOM. This resulted in scroll anchoring making adjustments, and consequently causing the succeeding expectations to fail. The simple fix here is to add "setPrintTestResultsLazily" to the tests so that the logging from the expectations is queued up and outputted at the end of the tests. This CL also migrates some js-tests to use testharness.js where its easy to do so. Some of the fixes are non-trivial and the inline comments explain the reasoning behind the fixes. Can't promote ScrollAnchoring to experiment until the following bug is fixed: crbug.com/624534, which causes inspector/console/console-viewport-selection.html to fail. BUG=597479 Committed: https://crrev.com/4577baf99363df344a6e1180cce4ac0436f5ce04 Cr-Commit-Position: refs/heads/master@{#407941}

Patch Set 1 #

Patch Set 2 : fix some tests #

Patch Set 3 : experiment with printing js-test results lazy-ly by default #

Patch Set 4 : fix more layout tests + s/experimental/test #

Patch Set 5 : fix trickier tests #

Patch Set 6 : Undo promoting ScrollAnchoring to test #

Total comments: 14

Patch Set 7 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -201 lines) Patch
M third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-no-scroll.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-scrolls.html View 1 3 chunks +23 lines, -22 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/canvas/draw-focus-if-needed-scrolls-expected.txt View 1 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/zoom-body-scroll.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/horizontal-scrollbar-when-dir-change.html View 1 2 3 4 5 6 1 chunk +14 lines, -38 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/vertical-scrollbar-when-dir-change.html View 1 2 3 4 5 6 1 chunk +15 lines, -32 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/dom/vertical-scrollbar-when-dir-change-expected.txt View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scrollbar-mainframe.html View 1 2 2 chunks +31 lines, -37 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scrollbar-mainframe-expected.txt View 1 2 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/fixed-position-scroll-into-view.html View 1 2 chunks +12 lines, -18 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/scrolling/fixed-position-scroll-into-view-expected.txt View 1 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/scroll-to-origin-no-layout.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/scroll-to-origin-with-options-no-layout.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/same-document-scroll-position-restore.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
ymalik
@skobes, Please see the description and the inline comments for an explanation for the fixes. ...
4 years, 5 months ago (2016-07-22 16:53:24 UTC) #3
skobes
https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-no-scroll.html File third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-no-scroll.html (right): https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-no-scroll.html#newcode11 third_party/WebKit/LayoutTests/editing/execCommand/insert-line-break-no-scroll.html:11: var result = (window.pageYOffset >= 1000) ? "SUCCESS" : ...
4 years, 4 months ago (2016-07-25 20:46:39 UTC) #4
ymalik
@skobes PTAL :) https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html (right): https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html#newcode13 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html:13: overflow-anchor: none; On 2016/07/25 20:46:38, skobes ...
4 years, 4 months ago (2016-07-26 21:03:50 UTC) #5
skobes
lgtm https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html File third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html (right): https://codereview.chromium.org/2165763002/diff/100001/third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html#newcode13 third_party/WebKit/LayoutTests/fast/css/sticky/sticky-container-moved.html:13: overflow-anchor: none; On 2016/07/26 21:03:50, ymalik wrote: > ...
4 years, 4 months ago (2016-07-26 21:19:14 UTC) #6
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/2165763002/120001
4 years, 4 months ago (2016-07-26 21:24:15 UTC) #8
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-07-26 22:37:42 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 22:39:52 UTC) #12
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4577baf99363df344a6e1180cce4ac0436f5ce04
Cr-Commit-Position: refs/heads/master@{#407941}

Powered by Google App Engine
This is Rietveld 408576698