OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 ::-webkit-scrollbar { | 4 ::-webkit-scrollbar { |
5 height: 30px; | 5 height: 30px; |
6 width: 30px; | 6 width: 30px; |
7 } | 7 } |
8 | 8 |
9 ::-webkit-scrollbar-thumb { | 9 ::-webkit-scrollbar-thumb { |
10 background-color: blue; | 10 background-color: blue; |
11 height: 30px; | 11 height: 30px; |
12 width: 30px; | 12 width: 30px; |
13 } | 13 } |
14 | 14 |
15 body { | 15 body { |
16 background-color: black; | 16 background-color: black; |
17 } | 17 } |
18 | 18 |
19 </style> | 19 </style> |
| 20 <script src="../../resources/run-after-display.js"></script> |
20 <script> | 21 <script> |
21 function test() | 22 function test() |
22 { | 23 { |
23 if (window.testRunner) { | 24 if (window.testRunner) { |
24 testRunner.waitUntilDone(); | 25 testRunner.waitUntilDone(); |
25 testRunner.dumpAsTextWithPixelResults(); | 26 testRunner.dumpAsTextWithPixelResults(); |
26 testRunner.display(); | |
27 } | 27 } |
28 | 28 runAfterDisplay(function() { |
29 window.setTimeout(function() { | |
30 document.body.scrollTop = 2000; | 29 document.body.scrollTop = 2000; |
31 if (window.testRunner) { | 30 if (window.testRunner) { |
32 testRunner.display(); | |
33 testRunner.notifyDone(); | 31 testRunner.notifyDone(); |
34 } | 32 } |
35 }, 0); | 33 }); |
36 } | 34 } |
37 </script> | 35 </script> |
38 </head> | 36 </head> |
39 <body onload="test()"> | 37 <body onload="test()"> |
40 <div style="height: 2000px; color: white;">PASS if blue scrollbar is at the bott
om.</div> | 38 <div style="height: 2000px; color: white;">PASS if blue scrollbar is at the bott
om.</div> |
41 </body> | 39 </body> |
42 </head> | 40 </head> |
OLD | NEW |