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

Side by Side Diff: LayoutTests/fast/dom/resources/check-scroll-position-onload.html

Issue 26472003: Fix improper scrollTop/Left usage in LayoutTests/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@issue_304768
Patch Set: Fix improper scrollTop/Left usage in LayoutTests/ Created 7 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css"> 4 <style type="text/css">
5 div { min-height: 3000px; } 5 div { min-height: 3000px; }
6 </style> 6 </style>
7 <script type="text/javascript"> 7 <script type="text/javascript">
8 function load() { 8 function load() {
9 var result = document.getElementById("result"); 9 var result = document.getElementById("result");
10 result.innerHTML = (document.body.scrollTop == 0) ? "PASS" : "FAIL"; 10 result.innerHTML = (document.documentElement.scrollTop == 0) ? "PASS " : "FAIL";
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.notifyDone(); 12 testRunner.notifyDone();
13 } 13 }
14 } 14 }
15 </script> 15 </script>
16 </head> 16 </head>
17 <body onload="load()"> 17 <body onload="load()">
18 <div id="result"> 18 <div id="result">
19 <p></p> 19 <p></p>
20 </div> 20 </div>
21 <body> 21 <body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/input/resources/reveal-utilities.js ('k') | LayoutTests/fast/events/mouse-cursor-multiframecur.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698