Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 2141313002: Settings Router Refactor: Implement new Route class w/ test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 }; 632 };
633 633
634 TEST_F('CrSettingsRadioGroupTest', 'All', function() { 634 TEST_F('CrSettingsRadioGroupTest', 'All', function() {
635 mocha.run(); 635 mocha.run();
636 }); 636 });
637 637
638 /** 638 /**
639 * @constructor 639 * @constructor
640 * @extends {CrSettingsBrowserTest} 640 * @extends {CrSettingsBrowserTest}
641 */ 641 */
642 function CrSettingsRouterTest() {} 642 function CrSettingsRouteTest() {}
643 643
644 CrSettingsRouterTest.prototype = { 644 CrSettingsRouteTest.prototype = {
645 __proto__: CrSettingsBrowserTest.prototype, 645 __proto__: CrSettingsBrowserTest.prototype,
646 646
647 /** @override */ 647 /** @override */
648 browsePreload: 'chrome://md-settings/route.html',
649
650 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
651 'route_tests.js',
652 ]),
653 };
654
655 TEST_F('CrSettingsRouteTest', 'All', function() {
656 mocha.run();
657 });
658
659 /**
660 * @constructor
661 * @extends {CrSettingsBrowserTest}
662 */
663 function CrSettingsRouterElementTest() {}
664
665 CrSettingsRouterElementTest.prototype = {
666 __proto__: CrSettingsBrowserTest.prototype,
667
668 /** @override */
648 browsePreload: 'chrome://md-settings/settings_page/settings_router.html', 669 browsePreload: 'chrome://md-settings/settings_page/settings_router.html',
649 670
650 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 671 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
651 'router_tests.js', 672 'router_tests.js',
652 ]), 673 ]),
653 }; 674 };
654 675
655 TEST_F('CrSettingsRouterTest', 'All', function() { 676 TEST_F('CrSettingsRouterElementTest', 'All', function() {
656 mocha.run(); 677 mocha.run();
657 }); 678 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/test/data/webui/settings/route_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698