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

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

Issue 2115133002: MD Settings: add a concept of "Canonical routes", which include URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_router.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/router_tests.js
diff --git a/chrome/test/data/webui/settings/router_tests.js b/chrome/test/data/webui/settings/router_tests.js
index d6d6e124932af96bcb2a1003c02de6023f1815d0..d9529251c6222a46a20507e5ad6511725667f18f 100644
--- a/chrome/test/data/webui/settings/router_tests.js
+++ b/chrome/test/data/webui/settings/router_tests.js
@@ -5,9 +5,10 @@
suite('routing', function() {
test('no duplicate routes', function() {
var urls = new Set();
- document.createElement('settings-router').routes_.forEach(function(route) {
- assertFalse(urls.has(route.url), route.url);
- urls.add(route.url);
- });
+ document.createElement('settings-router').canonicalRoutes_.forEach(
+ function(route) {
+ assertFalse(urls.has(route.url), route.url);
+ urls.add(route.url);
+ });
});
});
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_router.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698