OLD | NEW |
(Empty) | |
| 1 <!doctype HTML> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <script> |
| 4 window.testIsAsync = true; |
| 5 |
| 6 // The image should not show a repaint if offscreen if Slimming Paint is on. |
| 7 // Otherwise it should, during this 200ms waiting period. |
| 8 function repaintTest() { |
| 9 window.scrollTo(0, 1000); // Put the image offscreen. |
| 10 setTimeout(finishRepaintTest, 200); // The initial red frame of the GIF has a
100ms duration. |
| 11 } |
| 12 </script> |
| 13 <body onload="runRepaintTest()"> |
| 14 <div style="height: 2000px; width: 2000px;"> |
| 15 <image src="../../fast/backgrounds/resources/red-green-animated.gif"> |
| 16 </div> |
| 17 </div> |
OLD | NEW |