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

Unified Diff: chrome/test/data/webui/settings/settings_animated_pages_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_animated_pages_test.js
diff --git a/chrome/test/data/webui/settings/settings_animated_pages_test.js b/chrome/test/data/webui/settings/settings_animated_pages_test.js
index 1b2052e63527fc26d9fbcb2d441f3e07837fbd15..f7929349d6f51a5175d8b4b062e337115a3ecfb2 100644
--- a/chrome/test/data/webui/settings/settings_animated_pages_test.js
+++ b/chrome/test/data/webui/settings/settings_animated_pages_test.js
@@ -6,11 +6,11 @@ suite('settings-animated-pages', function() {
test('focuses subpage trigger when exiting subpage', function(done) {
document.body.innerHTML = `
<settings-animated-pages
- section="${settings.Route.SEARCH_ENGINES.section}">
+ section="${settings.routes.SEARCH_ENGINES.section}">
<neon-animatable route-path="default">
<button id="subpage-trigger"></button>
</neon-animatable>
- <neon-animatable route-path="${settings.Route.SEARCH_ENGINES.path}">
+ <neon-animatable route-path="${settings.routes.SEARCH_ENGINES.path}">
<button id="subpage-trigger"></button>
</neon-animatable>
</settings-animated-pages>`;
@@ -18,15 +18,15 @@ suite('settings-animated-pages', function() {
var animatedPages = document.body.querySelector('settings-animated-pages');
animatedPages.focusConfig = new Map();
animatedPages.focusConfig.set(
- settings.Route.SEARCH_ENGINES.path, '#subpage-trigger');
+ settings.routes.SEARCH_ENGINES.path, '#subpage-trigger');
var trigger = document.body.querySelector('#subpage-trigger');
assertTrue(!!trigger);
trigger.addEventListener('focus', function() { done(); });
// Trigger subpage exit navigation.
- settings.navigateTo(settings.Route.BASIC);
- settings.navigateTo(settings.Route.SEARCH_ENGINES);
+ settings.navigateTo(settings.routes.BASIC);
+ settings.navigateTo(settings.routes.SEARCH_ENGINES);
settings.navigateToPreviousRoute();
});
});
« no previous file with comments | « chrome/test/data/webui/settings/route_tests.js ('k') | chrome/test/data/webui/settings/settings_main_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698