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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/cr_settings_browsertest.js
diff --git a/chrome/test/data/webui/settings/cr_settings_browsertest.js b/chrome/test/data/webui/settings/cr_settings_browsertest.js
index d7942237e63247a73a1df7b2be905a4cdb71fa3d..082557419e9fc89d645dab41f60660198cad68ad 100644
--- a/chrome/test/data/webui/settings/cr_settings_browsertest.js
+++ b/chrome/test/data/webui/settings/cr_settings_browsertest.js
@@ -639,9 +639,30 @@ TEST_F('CrSettingsRadioGroupTest', 'All', function() {
* @constructor
* @extends {CrSettingsBrowserTest}
*/
-function CrSettingsRouterTest() {}
+function CrSettingsRouteTest() {}
-CrSettingsRouterTest.prototype = {
+CrSettingsRouteTest.prototype = {
+ __proto__: CrSettingsBrowserTest.prototype,
+
+ /** @override */
+ browsePreload: 'chrome://md-settings/route.html',
+
+ extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
+ 'route_tests.js',
+ ]),
+};
+
+TEST_F('CrSettingsRouteTest', 'All', function() {
+ mocha.run();
+});
+
+/**
+ * @constructor
+ * @extends {CrSettingsBrowserTest}
+ */
+function CrSettingsRouterElementTest() {}
+
+CrSettingsRouterElementTest.prototype = {
__proto__: CrSettingsBrowserTest.prototype,
/** @override */
@@ -652,6 +673,6 @@ CrSettingsRouterTest.prototype = {
]),
};
-TEST_F('CrSettingsRouterTest', 'All', function() {
+TEST_F('CrSettingsRouterElementTest', 'All', function() {
mocha.run();
});
« 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