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

Side by Side Diff: LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate.html

Issue 1063573002: history.pushState() should take care of scrolling state (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="/js-test-resources/js-test.js"></script>
4 <div style="height: 1100px">scroll down...</div>
5 <div id="log"></div>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.waitUntilDone();
10 }
11
12 window.onload = function() {
13 window.scrollBy(0, 1000);
14 history.pushState({}, '', '');
15 history.pushState({}, '', '');
16 scrollOffsetY = window.scrollY;
17 history.back();
18 setTimeout(function() {
19 shouldBeTrue('window.scrollY == scrollOffsetY');
20 if (window.testRunner)
21 testRunner.notifyDone();
22 }, 0);
23 };
24 </script>
25 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/navigation/same-document-scroll-position-restore-pushstate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698