Chromium Code Reviews
DescriptionMD 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 #
Messages
Total messages: 25 (21 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||