OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title></title> | 3 <title></title> |
| 4 <script src="../../resources/run-after-display.js"></script> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 5 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 function repaintTest() | 7 if (window.testRunner) |
7 { | 8 testRunner.waitUntilDone(); |
| 9 |
| 10 window.onload = function() |
| 11 { |
| 12 window.scrollTo(0, 20); |
| 13 runAfterDisplay(function() { |
| 14 runRepaintTest(); |
| 15 if (window.testRunner) |
| 16 testRunner.notifyDone(); |
| 17 }); |
| 18 } |
| 19 |
| 20 function repaintTest() |
| 21 { |
8 document.getElementById('t').style.background='green'; | 22 document.getElementById('t').style.background='green'; |
9 } | 23 } |
10 </script> | 24 </script> |
11 </head> | 25 </head> |
12 <body style="height:2000px;" onload="runRepaintTest()"> | 26 <body style="height:2000px;"> |
13 <p style="position: relative; top: 20px;"> | 27 <p style="position: relative; top: 20px;"> |
14 Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=1145
2">http://bugs.webkit.org/show_bug.cgi?id=11452</a> | 28 Repaint test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=1145
2">http://bugs.webkit.org/show_bug.cgi?id=11452</a> |
15 REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>. | 29 REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes</i>. |
16 </p> | 30 </p> |
17 <div id="t" style="position: fixed; width: 100px; height: 100px; background:
red"></div> | 31 <div id="t" style="position: fixed; width: 100px; height: 100px; background:
red"></div> |
18 <script> | |
19 window.scrollTo(0, 20); | |
20 </script> | |
21 </body> | 32 </body> |
22 </html> | 33 </html> |
OLD | NEW |