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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 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/settings_subpage_test.js
diff --git a/chrome/test/data/webui/settings/settings_subpage_test.js b/chrome/test/data/webui/settings/settings_subpage_test.js
index 343c7adabe093f828c7dc106dacdbd8160bc7033..1ab14db1f47c3b8824b3273a0242d797f5d21b51 100644
--- a/chrome/test/data/webui/settings/settings_subpage_test.js
+++ b/chrome/test/data/webui/settings/settings_subpage_test.js
@@ -9,23 +9,23 @@ cr.define('settings_subpage', function() {
// Pretend that we initially started on the CERTIFICATES route.
window.history.replaceState(
- undefined, '', settings.Route.CERTIFICATES.path);
+ undefined, '', settings.routes.CERTIFICATES.path);
settings.initializeRouteFromUrl();
- assertEquals(settings.Route.CERTIFICATES, settings.getCurrentRoute());
+ assertEquals(settings.routes.CERTIFICATES, settings.getCurrentRoute());
var subpage = document.createElement('settings-subpage');
document.body.appendChild(subpage);
MockInteractions.tap(subpage.$$('button'));
- assertEquals(settings.Route.PRIVACY, settings.getCurrentRoute());
+ assertEquals(settings.routes.PRIVACY, settings.getCurrentRoute());
});
test('navigates to any route via window.back()', function(done) {
PolymerTest.clearBody();
- settings.navigateTo(settings.Route.BASIC);
- settings.navigateTo(settings.Route.SYNC);
- assertEquals(settings.Route.SYNC, settings.getCurrentRoute());
+ settings.navigateTo(settings.routes.BASIC);
+ settings.navigateTo(settings.routes.SYNC);
+ assertEquals(settings.routes.SYNC, settings.getCurrentRoute());
var subpage = document.createElement('settings-subpage');
document.body.appendChild(subpage);
@@ -33,7 +33,7 @@ cr.define('settings_subpage', function() {
MockInteractions.tap(subpage.$$('button'));
window.addEventListener('popstate', function(event) {
- assertEquals(settings.Route.BASIC, settings.getCurrentRoute());
+ assertEquals(settings.routes.BASIC, settings.getCurrentRoute());
done();
});
});
« no previous file with comments | « chrome/test/data/webui/settings/settings_menu_test.js ('k') | chrome/test/data/webui/settings/settings_ui_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698