| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 675 |
| 676 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() { | 676 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() { |
| 677 suite('NonExistentRoutes', function() { | 677 suite('NonExistentRoutes', function() { |
| 678 test('redirect to basic', function() { | 678 test('redirect to basic', function() { |
| 679 assertEquals(settings.Route.BASIC, settings.getCurrentRoute()); | 679 assertEquals(settings.Route.BASIC, settings.getCurrentRoute()); |
| 680 assertEquals('/', location.pathname); | 680 assertEquals('/', location.pathname); |
| 681 }); | 681 }); |
| 682 }); | 682 }); |
| 683 mocha.run(); | 683 mocha.run(); |
| 684 }); | 684 }); |
| 685 |
| 686 /** |
| 687 * Test fixture for chrome/browser/resources/settings/settings_main/. |
| 688 * @constructor |
| 689 * @extends {CrSettingsBrowserTest} |
| 690 */ |
| 691 function CrSettingsMainPageTest() {} |
| 692 |
| 693 CrSettingsMainPageTest.prototype = { |
| 694 __proto__: CrSettingsBrowserTest.prototype, |
| 695 |
| 696 /** @override */ |
| 697 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
| 698 |
| 699 /** @override */ |
| 700 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
| 701 'settings_main_test.js', |
| 702 ]), |
| 703 }; |
| 704 |
| 705 TEST_F('CrSettingsMainPageTest', 'All', function() { |
| 706 settings_main_page.registerTests(); |
| 707 mocha.run(); |
| 708 }); |
| OLD | NEW |