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..3d7eeb86b311b33bfd1d302d6654b24334595367 100644 |
--- a/chrome/test/data/webui/settings/device_page_tests.js |
+++ b/chrome/test/data/webui/settings/device_page_tests.js |
@@ -142,6 +142,12 @@ 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. |
+ // TODO(tommycli): Remove once settings.navigateTo is no longer a stub. |
+ settings.navigateTo = function(route) { |
+ devicePage.currentRoute = route; |
+ }; |
}); |
setup(function(done) { |
@@ -150,7 +156,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(); |