DescriptionChange SettingsLanguagesPageBrowserTest to CrSettingsLanguagesPageTest
Transforms a browser test to a lighterweight browser test in an attempt
to avoid test flakes: don't load the settings page (in non-vulcanized
builds), don't make round trips to the real browser settings, and split
up the tests into four individual browser tests.
SettingsLanguagesPageBrowserTest is currently a SettingsPageBrowserTest
test fixture that loads chrome://md-settings with real browser settings
to test language settings.
This CL changes it into a CrSettingsBrowserTest, which differs by
loading only the <settings-languages-page> file and its dependencies,
starting with a blank page, mocking the various settings APIs, and
testing the element in isolation.
On a vulcanized build, we still load the entire chrome://md-settings
page. Once it loads, though, we clear that page, mock the various
settings APIs, and can still test a <settings-languages-page> in
relative isolation.
The mocha test suite is invoked in four parts, so each browser test has
to execute fewer mocha tests and should finish in less time.
R=dpapad@chromium.org
BUG=641400
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2837703002
Cr-Commit-Position: refs/heads/master@{#469789}
Committed: https://chromium.googlesource.com/chromium/src/+/dbea67d82a6fc4caa4558ae3066bfa76afdc18e1
Patch Set 1 #Patch Set 2 : cleanup #
Total comments: 6
Patch Set 3 : rebase #Patch Set 4 : rebase #Messages
Total messages: 18 (11 generated)
|