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

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

Issue 2170583002: MD Settings: fix route query in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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
« no previous file with comments | « chrome/test/data/webui/settings/languages_page_browsertest.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/settings_page_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_page_browsertest.js b/chrome/test/data/webui/settings/settings_page_browsertest.js
index f7de861327fabcd1919cfa663e8a4ab3845305b9..7e60116464fcb0274da8d111d22c18e8c7aa30a9 100644
--- a/chrome/test/data/webui/settings/settings_page_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_page_browsertest.js
@@ -74,33 +74,6 @@ SettingsPageBrowserTest.prototype = {
return undefined;
},
- /** @return {!SettingsRouterElement} The <settings-router> for the page. */
- getRouter: function() {
- var router = document.querySelector('cr-settings').$$('settings-ui')
- .$$('settings-router');
- assert(!!router);
- return router;
- },
-
- /**
- * @return {boolean} True if the router's state is a root page, e.g. Basic.
- */
- isAtRoot: function() {
- var router = this.getRouter();
- return router.section == '' && router.subpage.length == 0;
- },
-
- /** Navigates to the current root page, e.g. Basic. */
- backToRoot: function() {
- var router = document.querySelector('cr-settings').$$('settings-ui')
- .$$('settings-router');
- router.currentRoute = {
- page: router.currentRoute.page,
- section: '',
- subpage: [],
- };
- },
-
/**
* Verifies the section has a visible #main element and that any possible
* sub-pages are hidden.
« no previous file with comments | « chrome/test/data/webui/settings/languages_page_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698