| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 * Test fixture for device-page. | 193 * Test fixture for device-page. |
| 194 * @constructor | 194 * @constructor |
| 195 * @extends {CrSettingsBrowserTest} | 195 * @extends {CrSettingsBrowserTest} |
| 196 */ | 196 */ |
| 197 function CrSettingsDevicePageTest() {} | 197 function CrSettingsDevicePageTest() {} |
| 198 | 198 |
| 199 CrSettingsDevicePageTest.prototype = { | 199 CrSettingsDevicePageTest.prototype = { |
| 200 __proto__: CrSettingsBrowserTest.prototype, | 200 __proto__: CrSettingsBrowserTest.prototype, |
| 201 | 201 |
| 202 /** @override */ | 202 /** @override */ |
| 203 browsePreload: | 203 browsePreload: 'chrome://md-settings/device_page/device_page.html', |
| 204 'chrome://md-settings/device_page/device_page.html', | |
| 205 | 204 |
| 206 /** @override */ | 205 /** @override */ |
| 207 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 206 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
| 208 '../fake_chrome_event.js', | 207 '../fake_chrome_event.js', |
| 209 'fake_settings_private.js', | 208 'fake_settings_private.js', |
| 210 'device_page_tests.js', | 209 'device_page_tests.js', |
| 211 ]), | 210 ]), |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { | 213 TEST_F('CrSettingsDevicePageTest', 'DevicePage', function() { |
| 215 mocha.run(); | 214 mocha.run(); |
| 216 }); | 215 }); |
| 217 GEN('#endif'); | 216 GEN('#endif'); |
| 217 |
| 218 GEN('#if !defined(OS_CHROMEOS)'); |
| 219 /** |
| 220 * @constructor |
| 221 * @extends {CrSettingsBrowserTest} |
| 222 */ |
| 223 function CrSettingsSystemPageTest() {} |
| 224 |
| 225 CrSettingsSystemPageTest.prototype = { |
| 226 __proto__: CrSettingsBrowserTest.prototype, |
| 227 |
| 228 /** @override */ |
| 229 browsePreload: 'chrome://md-settings/system_page/system_page.html', |
| 230 |
| 231 /** @override */ |
| 232 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 233 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
| 234 'test_browser_proxy.js', |
| 235 'system_page_tests.js', |
| 236 ]), |
| 237 }; |
| 238 |
| 239 TEST_F('CrSettingsSystemPageTest', 'Restart', function() { |
| 240 mocha.run(); |
| 241 }); |
| 242 GEN('#endif'); |
| OLD | NEW |