1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /** @fileoverview Runs the Polymer Settings tests. */
7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../';
10 // Polymer BrowserTest fixture.
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
15 * Test fixture for Polymer Settings elements.
17 * @extends {PolymerTest}
19 function CrSettingsBrowserTest() {}
21 CrSettingsBrowserTest.prototype = {
22 __proto__: PolymerTest.prototype,
25 browsePreload: 'chrome://md-settings/prefs/prefs.html',
27 commandLineSwitches: [{switchName: 'enable-md-settings'}],
30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
32 'prefs_test_cases.js',
38 TEST_F('CrSettingsBrowserTest', 'CrSettingsTest', function() {
39 // Register mocha tests for each element.
40 cr_settings_checkbox.registerTests();
41 cr_settings_prefs.registerTests();
43 // Run all registered tests.