OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #overflow { | 5 #overflow { |
6 height: 100px; | 6 height: 100px; |
7 width: 100px; | 7 width: 100px; |
8 overflow: hidden; | 8 overflow: hidden; |
9 } | 9 } |
10 </style> | 10 </style> |
11 <script> | 11 <script> |
12 if (window.testRunner) | 12 if (window.testRunner) |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 | 14 |
15 function testScrollByLine() | 15 function testScroll() |
16 { | 16 { |
17 var overflowDiv = document.getElementById("overflow"); | 17 var overflowDiv = document.getElementById("overflow"); |
18 overflowDiv.scrollByLines(10); | 18 overflowDiv.scrollTop = 100; |
19 overflowDiv.scrollByPages(10); | |
20 overflowDiv.innerHTML = "PASSED: The test did not crash!"; | 19 overflowDiv.innerHTML = "PASSED: The test did not crash!"; |
21 } | 20 } |
22 window.addEventListener("load", testScrollByLine, false); | 21 window.addEventListener("load", testScroll, false); |
23 </script> | 22 </script> |
24 </head> | 23 </head> |
25 <body> | 24 <body> |
26 <div><a href="https://bugs.webkit.org/show_bug.cgi?id=83728">bug 83728</a>:
Reduce the use of RenderLayer outside of the rendering code</div> | 25 <div><a href="https://bugs.webkit.org/show_bug.cgi?id=83728">bug 83728</a>:
Reduce the use of RenderLayer outside of the rendering code</div> |
27 <div>This test passes if you see PASSED below.</div> | 26 <div>This test passes if you see PASSED below.</div> |
28 <div id="overflow">FAILED</div> | 27 <div id="overflow">FAILED</div> |
29 <body> | 28 <body> |
30 </html> | 29 </html> |
OLD | NEW |