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

Side by Side Diff: LayoutTests/fast/dom/scroll-position-for-new-loads.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Check that document.body.scrollTop is equal to '0' for newly loaded p ages</title> 4 <title>Check that document.scrollingElement.scrollTop is equal to '0' for ne wly loaded pages</title>
5 <link rel="author" title="Mikhail Pozdnyakov" href="mailto:mikhail.pozdnyako v@intel.com" /> 5 <link rel="author" title="Mikhail Pozdnyakov" href="mailto:mikhail.pozdnyako v@intel.com" />
6 <style type="text/css"> 6 <style type="text/css">
7 div { min-height: 3000px; } 7 div { min-height: 3000px; }
8 </style> 8 </style>
9 <script type="text/javascript"> 9 <script type="text/javascript">
10 if (window.testRunner) { 10 if (window.testRunner) {
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 } 13 }
14 14
15 function update() { 15 function update() {
16 var result = document.getElementById("result"); 16 var result = document.getElementById("result");
17 window.location = "resources/check-scroll-position-onload.html"; 17 window.location = "resources/check-scroll-position-onload.html";
18 } 18 }
19 19
20 function load() { 20 function load() {
21 window.scrollBy(0, 1000); 21 window.scrollBy(0, 1000);
22 setTimeout(update, 0); 22 setTimeout(update, 0);
23 } 23 }
24 </script> 24 </script>
25 </head> 25 </head>
26 <body onload="load()"> 26 <body onload="load()">
27 <div id="result"> 27 <div id="result">
28 <p></p> 28 <p></p>
29 </div> 29 </div>
30 <body> 30 <body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/anchor-without-content.html ('k') | LayoutTests/fast/events/autoscroll.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698