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

Issue 2208603004: Ensure compositing test preference overrides are reset between tests (Closed)

Created:
4 years, 4 months ago by pdr.
Modified:
4 years, 4 months ago
Reviewers:
Mike West, chrishtr, Xianzhu
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure compositing test preference overrides are reset between tests Layouttests in the compositing/ directory override the default preferences to enable accelerated 2d canvas and enable mock scrollbars[1]. These preferences were not reset properly so tests following the compositing test could run with the compositing overrides. This patch forces preferences to be reset before every test. This flakiness was observable on the bots where tests would flakily fail with incorrect scrollbars: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=compositing%2Flayers-inside-overflow-scroll.html&showExpectations=true To reproduce this bug reliably, run: run-webkit-tests compositing/animation/state-at-end-event-transform-layer.html fast/canvas/canvas-render-layer.html --additional-driver-flag=--enable-slimming-paint-v2 --child-processes=1 which will fail. Running the tests individually passes. [1] https://cs.chromium.org/chromium/src/content/shell/browser/layout_test/blink_test_controller.cc?l=369 BUG=633707, 627798, 634685 Committed: https://crrev.com/a5191dca2b309396a7743816917f19d037ebc39a Cr-Commit-Position: refs/heads/master@{#410485}

Patch Set 1 #

Patch Set 2 : Revert spurious extra expectation #

Patch Set 3 : Add windows-specific test expectations update #

Total comments: 4

Patch Set 4 : Always reset preferences #

Messages

Total messages: 26 (16 generated)
pdr.
4 years, 4 months ago (2016-08-04 06:29:10 UTC) #5
Mike West
LGTM, thanks for the descriptive CL description.
4 years, 4 months ago (2016-08-04 11:25:03 UTC) #9
chrishtr
lgtm
4 years, 4 months ago (2016-08-04 15:30:07 UTC) #10
Xianzhu
https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc#newcode315 content/shell/browser/layout_test/blink_test_controller.cc:315: if (is_compositing_test_) { Can we just omit this condition, ...
4 years, 4 months ago (2016-08-04 15:53:26 UTC) #11
Xianzhu
https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc#newcode321 content/shell/browser/layout_test/blink_test_controller.cc:321: render_view_host->UpdateWebkitPreferences(default_prefs_); Would it work to just change the above ...
4 years, 4 months ago (2016-08-04 16:04:52 UTC) #12
pdr.
https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc File content/shell/browser/layout_test/blink_test_controller.cc (right): https://codereview.chromium.org/2208603004/diff/40001/content/shell/browser/layout_test/blink_test_controller.cc#newcode315 content/shell/browser/layout_test/blink_test_controller.cc:315: if (is_compositing_test_) { On 2016/08/04 at 15:53:26, Xianzhu wrote: ...
4 years, 4 months ago (2016-08-08 21:29:40 UTC) #16
Xianzhu
lgtm
4 years, 4 months ago (2016-08-08 21:50:45 UTC) #17
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/2208603004/60001
4 years, 4 months ago (2016-08-08 22:46:45 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-08 22:54:50 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 22:56:36 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a5191dca2b309396a7743816917f19d037ebc39a
Cr-Commit-Position: refs/heads/master@{#410485}

Powered by Google App Engine
This is Rietveld 408576698