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('background'); | 10 document.querySelector('svg').style.removeProperty('background'); |
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 <div style="width: 100px; height: 100px; background: green"> | 17 <div style="width: 100px; height: 100px; background: green"> |
18 <svg style="background: red" width="100" height="100"></svg> | 18 <svg style="background: red" width="100" height="100"></svg> |
19 </div> | 19 </div> |
OLD | NEW |