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

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

Issue 2165763002: Fix layout tests that would fail if ScrollAnchoring was promoted to experimental (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 4 years, 4 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 | « third_party/WebKit/LayoutTests/fast/scrolling/scroll-to-origin-with-options-no-layout.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <div style="height: 1000px"></div> 2 <div style="height: 1000px"></div>
3 <a id="a" href="#bottom">Link to bottom</a> 3 <a id="a" href="#bottom">Link to bottom</a>
4 <div style="height: 1000px"></div> 4 <div style="height: 1000px"></div>
5 <a name="bottom"></a> 5 <a name="bottom"></a>
6 <script src="/js-test-resources/js-test.js"></script> 6 <script src="/js-test-resources/js-test.js"></script>
7 <script> 7 <script>
8 setPrintTestResultsLazily();
9
8 if (window.testRunner) { 10 if (window.testRunner) {
9 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
10 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
11 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
12 } 14 }
13 15
14 window.onload = function() { 16 window.onload = function() {
15 if (window.eventSender) { 17 if (window.eventSender) {
16 function clickLink() { 18 function clickLink() {
17 var a = document.getElementById("a"); 19 var a = document.getElementById("a");
(...skipping 12 matching lines...) Expand all
30 if (!haveSeenHashChange) { 32 if (!haveSeenHashChange) {
31 haveSeenHashChange = true; 33 haveSeenHashChange = true;
32 history.back(); 34 history.back();
33 } else { 35 } else {
34 document.body.appendChild(document.createTextNode("scrollY should be 800 : " + (window.scrollY == 800 ? "PASS" : "FAIL"))); 36 document.body.appendChild(document.createTextNode("scrollY should be 800 : " + (window.scrollY == 800 ? "PASS" : "FAIL")));
35 finishJSTest(); 37 finishJSTest();
36 } 38 }
37 } 39 }
38 </script> 40 </script>
39 </body> 41 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/scrolling/scroll-to-origin-with-options-no-layout.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698