| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** @fileoverview Runs the Polymer Settings tests. */ | 5 /** @fileoverview Runs the Polymer Settings tests. */ |
| 6 | 6 |
| 7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 CrSettingsBrowserTest.prototype = { | 21 CrSettingsBrowserTest.prototype = { |
| 22 __proto__: PolymerTest.prototype, | 22 __proto__: PolymerTest.prototype, |
| 23 | 23 |
| 24 /** @override */ | 24 /** @override */ |
| 25 browsePreload: 'chrome://md-settings/prefs/prefs.html', | 25 browsePreload: 'chrome://md-settings/prefs/prefs.html', |
| 26 | 26 |
| 27 commandLineSwitches: [{switchName: 'enable-md-settings'}], | 27 commandLineSwitches: [{switchName: 'enable-md-settings'}], |
| 28 | 28 |
| 29 /** @override */ | 29 /** @override */ |
| 30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 30 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 31 'fake_settings_private.js', |
| 31 'checkbox_tests.js', | 32 'checkbox_tests.js', |
| 32 'dropdown_menu_tests.js', | 33 'dropdown_menu_tests.js', |
| 33 'pref_util_tests.js', | 34 'pref_util_tests.js', |
| 34 'prefs_test_cases.js', | 35 'prefs_test_cases.js', |
| 35 'prefs_tests.js', | 36 'prefs_tests.js', |
| 36 'site_list_tests.js', | 37 'site_list_tests.js', |
| 37 'site_settings_category_tests.js', | 38 'site_settings_category_tests.js', |
| 38 ]), | 39 ]), |
| 39 }; | 40 }; |
| 40 | 41 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 54 settings_checkbox.registerTests(); | 55 settings_checkbox.registerTests(); |
| 55 settings_dropdown_menu.registerTests(); | 56 settings_dropdown_menu.registerTests(); |
| 56 settings_prefUtil.registerTests(); | 57 settings_prefUtil.registerTests(); |
| 57 settings_prefs.registerTests(); | 58 settings_prefs.registerTests(); |
| 58 site_list.registerTests(); | 59 site_list.registerTests(); |
| 59 site_settings_category.registerTests(); | 60 site_settings_category.registerTests(); |
| 60 | 61 |
| 61 // Run all registered tests. | 62 // Run all registered tests. |
| 62 mocha.run(); | 63 mocha.run(); |
| 63 }); | 64 }); |
| OLD | NEW |