| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 window.testIsAsync = true; | 4 window.testIsAsync = true; |
| 5 window.onload = runRepaintTest; | 5 window.onload = runRepaintAndPixelTest; |
| 6 | 6 |
| 7 function repaintTest() { | 7 function repaintTest() { |
| 8 setTimeout(function() { | 8 setTimeout(function() { |
| 9 requestAnimationFrame(function() { | 9 requestAnimationFrame(function() { |
| 10 document.querySelector('svg').style.removeProperty('border'); | 10 document.querySelector('svg').style.removeProperty('border'); |
| 11 if (window.testRunner) | 11 if (window.testRunner) |
| 12 finishRepaintTest(); | 12 finishRepaintTest(); |
| 13 }); | 13 }); |
| 14 }, 0); | 14 }, 0); |
| 15 }; | 15 }; |
| 16 </script> | 16 </script> |
| 17 <svg style="border: 10px solid red; position: absolute" width="100" height="100"
> | 17 <svg style="border: 10px solid red; position: absolute" width="100" height="100"
> |
| 18 </svg> | 18 </svg> |
| OLD | NEW |