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

Unified Diff: chrome/test/data/webui/settings/route_tests.js

Issue 2754563002: MD Settings: Lazy load the contents of the "advanced" settings. (Closed)
Patch Set: Address comments. Created 3 years, 9 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/route_tests.js
diff --git a/chrome/test/data/webui/settings/route_tests.js b/chrome/test/data/webui/settings/route_tests.js
index 32e13d1f571686e0326f338ab0ab516ca0c48a44..7344683e06fed0b3300a06541bdc34194197abc7 100644
--- a/chrome/test/data/webui/settings/route_tests.js
+++ b/chrome/test/data/webui/settings/route_tests.js
@@ -19,6 +19,10 @@ suite('route', function() {
return promise;
}
+ teardown(function() {
+ PolymerTest.clearBody();
+ });
+
/**
* Tests a specific navigation situation.
* @param {!settings.Route} previousRoute
@@ -184,4 +188,15 @@ suite('route', function() {
settings.getRouteForPath('/keyboard-overlay/'));
}
});
+
+ test('isNavigableDialog', function() {
+ assertTrue(settings.Route.CLEAR_BROWSER_DATA.isNavigableDialog);
+ assertTrue(settings.Route.IMPORT_DATA.isNavigableDialog);
+ assertTrue(settings.Route.RESET_DIALOG.isNavigableDialog);
+ assertTrue(settings.Route.SIGN_OUT.isNavigableDialog);
+ assertTrue(settings.Route.TRIGGERED_RESET_DIALOG.isNavigableDialog);
+
+ assertFalse(settings.Route.PRIVACY.isNavigableDialog);
+ assertFalse(settings.Route.DEFAULT_BROWSER.isNavigableDialog);
+ });
});

Powered by Google App Engine
This is Rietveld 408576698