| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 td { width: 100px; height: 100px } |
| 4 tr { background-image: url(../../../fast/backgrounds/resources/red-green-animate
d.gif) } |
| 5 </style> |
| 6 <table> |
| 7 <tr id="row"> |
| 8 <td id="cell1"></td> |
| 9 <td id="cell2"></td> |
| 10 </tr> |
| 11 </table> |
| 12 <img id="image"> |
| 13 <script src="../resources/text-based-repaint.js"></script> |
| 14 <script> |
| 15 window.testIsAsync = true; |
| 16 function repaintTest() { |
| 17 if (window.internals) |
| 18 internals.advanceImageAnimation(image); |
| 19 requestAnimationFrame(function() { |
| 20 finishRepaintTest(); |
| 21 }); |
| 22 } |
| 23 onload = function() { |
| 24 // The image element ensures that the test runs just after the image |
| 25 // resource is loaded, and will be used in advanceImageAnimation(). |
| 26 image.onload = runRepaintTest; |
| 27 image.src="../../../fast/backgrounds/resources/red-green-animated.gif"; |
| 28 } |
| 29 </script> |
| OLD | NEW |