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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 'test_browser_proxy.js', | 333 'test_browser_proxy.js', |
334 'appearance_page_test.js', | 334 'appearance_page_test.js', |
335 ]), | 335 ]), |
336 }; | 336 }; |
337 | 337 |
338 TEST_F('CrSettingsAppearancePageTest', 'AppearancePage', function() { | 338 TEST_F('CrSettingsAppearancePageTest', 'AppearancePage', function() { |
339 settings_appearance.registerTests(); | 339 settings_appearance.registerTests(); |
340 mocha.run(); | 340 mocha.run(); |
341 }); | 341 }); |
342 | 342 |
| 343 GEN('#if !defined(OS_CHROMEOS)'); |
| 344 /** |
| 345 * Test fixture for chrome/browser/resources/settings/default_browser_page/. |
| 346 * @constructor |
| 347 * @extends {CrSettingsBrowserTest} |
| 348 */ |
| 349 function CrSettingsDefaultBrowserTest() {} |
| 350 |
| 351 CrSettingsDefaultBrowserTest.prototype = { |
| 352 __proto__: CrSettingsBrowserTest.prototype, |
| 353 |
| 354 /** @override */ |
| 355 browsePreload: |
| 356 'chrome://md-settings/default_browser_page/default_browser_page.html', |
| 357 |
| 358 /** @override */ |
| 359 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 360 'test_browser_proxy.js', |
| 361 'default_browser_browsertest.js', |
| 362 ]), |
| 363 }; |
| 364 |
| 365 TEST_F('CrSettingsDefaultBrowserTest', 'DefaultBrowserPage', function() { |
| 366 settings_default_browser.registerTests(); |
| 367 mocha.run(); |
| 368 }); |
| 369 GEN('#endif'); |
| 370 |
343 /** | 371 /** |
344 * Test fixture for chrome/browser/resources/settings/search_page/. | 372 * Test fixture for chrome/browser/resources/settings/search_page/. |
345 * @constructor | 373 * @constructor |
346 * @extends {CrSettingsBrowserTest} | 374 * @extends {CrSettingsBrowserTest} |
347 */ | 375 */ |
348 function CrSettingsSearchPageTest() {} | 376 function CrSettingsSearchPageTest() {} |
349 | 377 |
350 CrSettingsSearchPageTest.prototype = { | 378 CrSettingsSearchPageTest.prototype = { |
351 __proto__: CrSettingsBrowserTest.prototype, | 379 __proto__: CrSettingsBrowserTest.prototype, |
352 | 380 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 'test_browser_proxy.js', | 843 'test_browser_proxy.js', |
816 'metrics_reporting_tests.js', | 844 'metrics_reporting_tests.js', |
817 ]), | 845 ]), |
818 }; | 846 }; |
819 | 847 |
820 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { | 848 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { |
821 mocha.run(); | 849 mocha.run(); |
822 }); | 850 }); |
823 | 851 |
824 GEN('#endif'); | 852 GEN('#endif'); |
OLD | NEW |