| 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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 662 |
| 663 /** | 663 /** |
| 664 * @constructor | 664 * @constructor |
| 665 * @extends {SettingsPageBrowserTest} | 665 * @extends {SettingsPageBrowserTest} |
| 666 */ | 666 */ |
| 667 function CrSettingsNonExistentRouteTest() {} | 667 function CrSettingsNonExistentRouteTest() {} |
| 668 | 668 |
| 669 CrSettingsNonExistentRouteTest.prototype = { | 669 CrSettingsNonExistentRouteTest.prototype = { |
| 670 __proto__: CrSettingsBrowserTest.prototype, | 670 __proto__: CrSettingsBrowserTest.prototype, |
| 671 | 671 |
| 672 /** @override */ | 672 /** @override */ |
| 673 browsePreload: 'chrome://md-settings/non/existent/route', | 673 browsePreload: 'chrome://md-settings/non/existent/route', |
| 674 }; | 674 }; |
| 675 | 675 |
| 676 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() { | 676 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 /** @override */ | 741 /** @override */ |
| 742 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 742 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 743 'settings_main_test.js', | 743 'settings_main_test.js', |
| 744 ]), | 744 ]), |
| 745 }; | 745 }; |
| 746 | 746 |
| 747 TEST_F('CrSettingsMainPageTest', 'All', function() { | 747 TEST_F('CrSettingsMainPageTest', 'All', function() { |
| 748 settings_main_page.registerTests(); | 748 settings_main_page.registerTests(); |
| 749 mocha.run(); | 749 mocha.run(); |
| 750 }); | 750 }); |
| 751 |
| 752 /** |
| 753 * @constructor |
| 754 * @extends {CrSettingsBrowserTest} |
| 755 */ |
| 756 function CrControlledButtonTest() {} |
| 757 |
| 758 CrControlledButtonTest.prototype = { |
| 759 __proto__: CrSettingsBrowserTest.prototype, |
| 760 |
| 761 /** @override */ |
| 762 browsePreload: 'chrome://md-settings/controls/controlled_button.html', |
| 763 |
| 764 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 765 'controlled_button_tests.js', |
| 766 ]), |
| 767 }; |
| 768 |
| 769 TEST_F('CrControlledButtonTest', 'All', function() { |
| 770 mocha.run(); |
| 771 }); |
| OLD | NEW |