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

Unified Diff: chrome/test/data/webui/settings/people_page_change_picture_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/people_page_change_picture_test.js
diff --git a/chrome/test/data/webui/settings/people_page_change_picture_test.js b/chrome/test/data/webui/settings/people_page_change_picture_test.js
index 627c43ba7134354197f32aa215cb96ec8f5b1b4f..e49af7e092f89d90394592235894e21d5e5973bd 100644
--- a/chrome/test/data/webui/settings/people_page_change_picture_test.js
+++ b/chrome/test/data/webui/settings/people_page_change_picture_test.js
@@ -103,7 +103,7 @@ cr.define('settings_people_page_change_picture', function() {
discardControlBar = changePicture.$.discardControlBar;
assertTrue(!!discardControlBar);
- changePicture.currentRouteChanged(settings.Route.CHANGE_PICTURE);
+ changePicture.currentRouteChanged(settings.routes.CHANGE_PICTURE);
return browserProxy.whenCalled('initialize').then(function() {
Polymer.dom.flush();
@@ -139,7 +139,7 @@ cr.define('settings_people_page_change_picture', function() {
expectTrue(discardControlBar.hidden);
// Ensure that the camera is deactivated if user navigates away.
- changePicture.currentRouteChanged(settings.Route.BASIC);
+ changePicture.currentRouteChanged(settings.routes.BASIC);
expectFalse(crCamera.cameraActive);
});
@@ -160,8 +160,8 @@ cr.define('settings_people_page_change_picture', function() {
// Ensure that the selection is restored after navigating away and
// then back to the subpage.
- changePicture.currentRouteChanged(settings.Route.BASIC);
- changePicture.currentRouteChanged(settings.Route.CHANGE_PICTURE);
+ changePicture.currentRouteChanged(settings.routes.BASIC);
+ changePicture.currentRouteChanged(settings.routes.CHANGE_PICTURE);
expectEquals(ChangePictureSelectionTypes.PROFILE,
changePicture.selectedItem_.dataset.type);
});

Powered by Google App Engine
This is Rietveld 408576698