DescriptionEnsure 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 #
Messages
Total messages: 21 (10 generated)
|