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