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

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

Issue 2582643002: MD Settings: Fix scrolling when navigating Forwards from BASIC page. (Closed)
Patch Set: change code Created 4 years 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/main_page_behavior.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/basic_page_browsertest.js
diff --git a/chrome/test/data/webui/settings/basic_page_browsertest.js b/chrome/test/data/webui/settings/basic_page_browsertest.js
index 8e1b2d90ffd8a434b6b1933a540d1ac01f8df165..0286fa3a462f2586aa771f7ed45b985fa296fe3d 100644
--- a/chrome/test/data/webui/settings/basic_page_browsertest.js
+++ b/chrome/test/data/webui/settings/basic_page_browsertest.js
@@ -127,6 +127,14 @@ TEST_F('SettingsBasicPageBrowserTest', 'MAYBE_Load', function() {
}).then(function() {
// Should be at the top of the page after going Back from the section.
assertEquals(0, page.scroller.scrollTop);
+
+ return new Promise(function(resolve) {
+ listenOnce(window, 'popstate', resolve);
+ window.history.forward();
+ });
+ }).then(function() {
+ // Should scroll when navigating forwards from the BASIC page.
+ assertNotEquals(0, page.scroller.scrollTop);
});
});
« no previous file with comments | « chrome/browser/resources/settings/settings_page/main_page_behavior.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698