| 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 assertEquals(settings.Route.PEOPLE, settings.getCurrentRoute()); | 717 assertEquals(settings.Route.PEOPLE, settings.getCurrentRoute()); |
| 718 assertEquals('a/b', settings.getQueryParameters().get('guid')); | 718 assertEquals('a/b', settings.getQueryParameters().get('guid')); |
| 719 assertEquals('42', settings.getQueryParameters().get('foo')); | 719 assertEquals('42', settings.getQueryParameters().get('foo')); |
| 720 done(); | 720 done(); |
| 721 }); | 721 }); |
| 722 window.history.back(); | 722 window.history.back(); |
| 723 }); | 723 }); |
| 724 }); | 724 }); |
| 725 mocha.run(); | 725 mocha.run(); |
| 726 }); | 726 }); |
| 727 |
| 728 /** |
| 729 * Test fixture for chrome/browser/resources/settings/settings_main/. |
| 730 * @constructor |
| 731 * @extends {CrSettingsBrowserTest} |
| 732 */ |
| 733 function CrSettingsMainPageTest() {} |
| 734 |
| 735 CrSettingsMainPageTest.prototype = { |
| 736 __proto__: CrSettingsBrowserTest.prototype, |
| 737 |
| 738 /** @override */ |
| 739 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
| 740 |
| 741 /** @override */ |
| 742 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 743 'settings_main_test.js', |
| 744 ]), |
| 745 }; |
| 746 |
| 747 TEST_F('CrSettingsMainPageTest', 'All', function() { |
| 748 settings_main_page.registerTests(); |
| 749 mocha.run(); |
| 750 }); |
| OLD | NEW |