Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / chrome / test / data / webui / settings / cr_settings_browsertest.js
blob89e24608dd550db874febada225d5abb8a76a165
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.
11 GEN_INCLUDE(
12 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
14 /**
15 * Test fixture for Polymer Settings elements.
16 * @constructor
17 * @extends {PolymerTest}
19 function CrSettingsBrowserTest() {}
21 CrSettingsBrowserTest.prototype = {
22 __proto__: PolymerTest.prototype,
24 /** @override */
25 browsePreload: 'chrome://md-settings/prefs/prefs.html',
27 commandLineSwitches: [{switchName: 'enable-md-settings'}],
29 /** @override */
30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
31 'prefs_test_cases.js',
32 'prefs_tests.js',
33 ]),
36 // Runs all tests.
37 TEST_F('CrSettingsBrowserTest', 'CrSettingsTest', function() {
38 // Register mocha tests for each element.
39 cr_settings_prefs.registerTests();
41 // Run all registered tests.
42 mocha.run();
43 });