| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ]), | 120 ]), |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { | 123 TEST_F('CrSettingsSearchEnginesTest', 'SearchEngines', function() { |
| 124 settings_search_engines_page.registerDialogTests(); | 124 settings_search_engines_page.registerDialogTests(); |
| 125 settings_search_engines_page.registerSearchEngineEntryTests(); | 125 settings_search_engines_page.registerSearchEngineEntryTests(); |
| 126 settings_search_engines_page.registerOmniboxExtensionEntryTests(); | 126 settings_search_engines_page.registerOmniboxExtensionEntryTests(); |
| 127 settings_search_engines_page.registerPageTests(); | 127 settings_search_engines_page.registerPageTests(); |
| 128 mocha.run(); | 128 mocha.run(); |
| 129 }); | 129 }); |
| 130 |
| 131 GEN('#if defined(OS_CHROMEOS)'); |
| 132 /** |
| 133 * Test fixture for device-page. |
| 134 * @constructor |
| 135 * @extends {CrSettingsBrowserTest} |
| 136 */ |
| 137 function CrSettingsDevicePageTest() {} |
| 138 |
| 139 CrSettingsDevicePageTest.prototype = { |
| 140 __proto__: CrSettingsBrowserTest.prototype, |
| 141 |
| 142 /** @override */ |
| 143 browsePreload: |
| 144 'chrome://md-settings/device_page/device_page.html', |
| 145 |
| 146 /** @override */ |
| 147 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 148 '../fake_chrome_event.js', |
| 149 'fake_settings_private.js', |
| 150 'device_page_tests.js', |
| 151 ]), |
| 152 }; |
| 153 |
| 154 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { |
| 155 mocha.run(); |
| 156 }); |
| 157 GEN('#endif'); |
| OLD | NEW |