Chromium Code Reviews| Index: chrome/test/data/webui/settings/cr_settings_browsertest.js |
| diff --git a/chrome/test/data/webui/cr_elements/cr_elements_browsertest.js b/chrome/test/data/webui/settings/cr_settings_browsertest.js |
| similarity index 58% |
| copy from chrome/test/data/webui/cr_elements/cr_elements_browsertest.js |
| copy to chrome/test/data/webui/settings/cr_settings_browsertest.js |
| index 2e3b69fd073e6b58b41c064b5dcc464475757122..8499102b2e86ad327c7868c63fd2d74a4e28f8a7 100644 |
| --- a/chrome/test/data/webui/cr_elements/cr_elements_browsertest.js |
| +++ b/chrome/test/data/webui/settings/cr_settings_browsertest.js |
| @@ -2,7 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -/** @fileoverview Runs the Chromium Polymer elements tests. */ |
| +/** @fileoverview Runs the Polymer Settings tests. */ |
| /** @const {string} Path to source root. */ |
| var ROOT_PATH = '../../../../../'; |
| @@ -12,25 +12,30 @@ GEN_INCLUDE( |
| [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); |
| /** |
| - * Test fixture for Chromium Polymer elements. |
| + * Test fixture for Polymer Settings elements. |
| * @constructor |
| * @extends {PolymerTest} |
| */ |
| -function CrElementsBrowserTest() {} |
| +function CrSettingsBrowserTest() {} |
| -CrElementsBrowserTest.prototype = { |
| +CrSettingsBrowserTest.prototype = { |
| __proto__: PolymerTest.prototype, |
| - // List tests for individual elements. |
| + /** @override */ |
| + browsePreload: 'chrome://md-settings/prefs/prefs.html', |
| + |
| + commandLineSwitches: [{switchName: 'enable-md-settings'}], |
|
Dan Beam
2015/09/14 23:31:48
nit: /** @override */ ?
michaelpg
2015/09/15 01:17:57
Not really... the test checks for the presence of
Dan Beam
2015/09/15 01:37:18
maybe it should be? whatevs
|
| + |
| + /** @override */ |
| extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| - 'cr_checkbox_tests.js', |
| + 'prefs_tests.js', |
| ]), |
| }; |
| // Runs all tests. |
| -TEST_F('CrElementsBrowserTest', 'CrElementsTest', function() { |
| +TEST_F('CrSettingsBrowserTest', 'CrSettingsTest', function() { |
| // Register mocha tests for each element. |
| - cr_checkbox.registerTests(); |
| + cr_settings_prefs.registerTests(); |
| // Run all registered tests. |
| mocha.run(); |