| OLD | NEW | 
| (Empty) |  | 
 |   1 <!doctype HTML> | 
 |   2 <body> | 
 |   3 <div style="height: 2000px; width: 2000px;"> | 
 |   4 <img id="targetImage"> | 
 |   5 </div> | 
 |   6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 
 |   7 <script> | 
 |   8 window.testIsAsync = true; | 
 |   9  | 
 |  10 // Tests that a repaint of the image occurs during the 200ms waiting period. | 
 |  11  | 
 |  12 function myfunc() { | 
 |  13   testRunner.displayAsyncThen(finishRepaintTest); | 
 |  14 } | 
 |  15  | 
 |  16 function targetImageOnload() { | 
 |  17   testRunner.displayAsyncThen(function() { | 
 |  18     setTimeout(myfunc, 400); // The initial red frame of the GIF has a 100ms dur
    ation | 
 |  19   }); | 
 |  20 } | 
 |  21  | 
 |  22 function repaintTest() { | 
 |  23   targetImage.onload = targetImageOnload; | 
 |  24   targetImage.src="../../fast/backgrounds/resources/red-green-animated.gif"; | 
 |  25 } | 
 |  26  | 
 |  27 runRepaintTest(); | 
 |  28  | 
 |  29 </script> | 
| OLD | NEW |