| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 browsePreload: 'chrome://md-settings/route.html', | 652 browsePreload: 'chrome://md-settings/route.html', |
| 653 | 653 |
| 654 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 654 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 655 'route_tests.js', | 655 'route_tests.js', |
| 656 ]), | 656 ]), |
| 657 }; | 657 }; |
| 658 | 658 |
| 659 TEST_F('CrSettingsRouteTest', 'All', function() { | 659 TEST_F('CrSettingsRouteTest', 'All', function() { |
| 660 mocha.run(); | 660 mocha.run(); |
| 661 }); | 661 }); |
| 662 |
| 663 /** |
| 664 * Test fixture for chrome/browser/resources/settings/settings_main/. |
| 665 * @constructor |
| 666 * @extends {CrSettingsBrowserTest} |
| 667 */ |
| 668 function CrSettingsMainPageTest() {} |
| 669 |
| 670 CrSettingsMainPageTest.prototype = { |
| 671 __proto__: CrSettingsBrowserTest.prototype, |
| 672 |
| 673 /** @override */ |
| 674 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
| 675 |
| 676 /** @override */ |
| 677 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 678 'settings_main_test.js', |
| 679 ]), |
| 680 }; |
| 681 |
| 682 TEST_F('CrSettingsMainPageTest', 'All', function() { |
| 683 settings_main_page.registerTests(); |
| 684 mocha.run(); |
| 685 }); |
| OLD | NEW |