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

Issue 2671493002: MD Settings: Fix some tests that break when run in Vulcanized mode. (Closed)

Created:
3 years, 10 months ago by dpapad
Modified:
3 years, 10 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, tommycli
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix some tests that break when run in Vulcanized mode. When in Vulcanized mode, any global state across MD Settings is present during testing, since all browserPreload URLs are forwarded to the top level document. Examples of such global state are - CrSettingsPrefs.initialized - Route.initializeRouteFromUrlCalled_ Some tests rely on those global state vars to have a certain value, and therefore a way to reset their value is introduced, by adding PolymerTest.clearBody() and detached() calls as necessary. BUG=673825 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2671493002 Cr-Commit-Position: refs/heads/master@{#447598} Committed: https://chromium.googlesource.com/chromium/src/+/ed703ecba76d77c8b8b389382c8d55f876cc772a

Patch Set 1 : Undo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -5 lines) Patch
M chrome/browser/resources/settings/prefs/prefs.js View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/route.js View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_ui/settings_ui.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/passwords_and_forms_browsertest.js View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/test/data/webui/settings/prefs_tests.js View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/rtl_tests.js View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/system_page_tests.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (21 generated)
dpapad
3 years, 10 months ago (2017-02-01 19:17:27 UTC) #13
Dan Beam
lgtm
3 years, 10 months ago (2017-02-01 19:19:01 UTC) #16
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/2671493002/20001
3 years, 10 months ago (2017-02-01 20:29:19 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 20:41:51 UTC) #25
Message was sent while issue was closed.
Committed patchset #1 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ed703ecba76d77c8b8b389382c8d...

Powered by Google App Engine
This is Rietveld 408576698