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

Issue 2264883002: Ensure previous test preference overrides are reset between tests (Closed)

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

Description

Ensure previous test preference overrides are reset between tests This patch fixes a bug introduced by [1] where explicit test preference overrides (e.g., testRunner.overridePreference(...)) would get re-used in later tests. BlinkTestController::PrepareForLayoutTest should completely reset preferences before every test. On the first test run, default_prefs_ is initialized with default preferences plus compositor-test-specific preferences. To ensure the compositor-test-specific preferences are reset for subsequent runs, we call OverrideWebkitPrefs(&default_prefs_). The bug in [1] was that default_prefs_ was read from the previous test and would include explicitly overridden preferences. This patch removes this line so default_prefs_ is no longer set to the previous test's preferences. Test that compositor-specific preferences are still reset: 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 --num-retries=0 --child-processes=1 Test that explicit preference overrides are reset: run-webkit-tests third_party/WebKit/LayoutTests/fast/harness/override-preferences.html third_party/WebKit/LayoutTests/fast/harness/results.html --num-retries=0 --child-processes=1 [1] https://crrev.com/a5191dca2b309396a7743816917f19d037ebc39a R=carlosk@chromium.org,wangxianzhu@chromium.org BUG=620126 Committed: https://crrev.com/ab2d1cd2ef3c8c12da17db01410d5749f1f4cb08 Cr-Commit-Position: refs/heads/master@{#413470}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M content/shell/browser/layout_test/blink_test_controller.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
pdr.
4 years, 4 months ago (2016-08-21 01:23:18 UTC) #3
Xianzhu
LGTM. Thanks!
4 years, 4 months ago (2016-08-21 17:15:38 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/2264883002/1
4 years, 4 months ago (2016-08-22 00:58:16 UTC) #8
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/242738)
4 years, 4 months ago (2016-08-22 01:04:16 UTC) #10
pdr.
+reviewer peter for OWNERS, mkwst is out until the 29th
4 years, 4 months ago (2016-08-22 07:04:59 UTC) #13
pdr.
4 years, 4 months ago (2016-08-22 07:05:05 UTC) #14
Peter Beverloo
lgtm
4 years, 4 months ago (2016-08-22 11:23:30 UTC) #15
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/2264883002/1
4 years, 4 months ago (2016-08-22 16:39:05 UTC) #17
carlosk
Late LGTM. And thanks for the very detailed description. For the record the reason why ...
4 years, 4 months ago (2016-08-22 17:33:01 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-22 17:49:09 UTC) #19
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 17:50:39 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ab2d1cd2ef3c8c12da17db01410d5749f1f4cb08
Cr-Commit-Position: refs/heads/master@{#413470}

Powered by Google App Engine
This is Rietveld 408576698