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

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

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master 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/device_page_tests.js
diff --git a/chrome/test/data/webui/settings/device_page_tests.js b/chrome/test/data/webui/settings/device_page_tests.js
index f4bf3ba0b4dc4778b58fcc0d6e9b78dd4992d055..39a8fcda842e8435c56dc293db1d609f56fe6f4e 100644
--- a/chrome/test/data/webui/settings/device_page_tests.js
+++ b/chrome/test/data/webui/settings/device_page_tests.js
@@ -142,6 +142,11 @@ cr.define('device_page_tests', function() {
suiteSetup(function() {
// Disable animations so sub-pages open within one event loop.
testing.Test.disableAnimationsAndTransitions();
+
+ // Update the device page route for navigations.
+ settings.navigateTo = function(route) {
+ devicePage.currentRoute = route;
+ };
});
setup(function(done) {
@@ -150,7 +155,7 @@ cr.define('device_page_tests', function() {
PolymerTest.clearBody();
devicePage = document.createElement('settings-device-page');
- devicePage.currentRoute = {page: 'basic', section: '', subpage: []};
+ devicePage.currentRoute = settings.Route.BASIC;
devicePage.prefs = getFakePrefs();
settings.DevicePageBrowserProxyImpl.instance_ =
new TestDevicePageBrowserProxy();

Powered by Google App Engine
This is Rietveld 408576698