| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <style> | 2 <style> |
| 3 @font-face { | 3 @font-face { |
| 4 font-family: 'myahem'; | 4 font-family: 'myahem'; |
| 5 src: url(../../resources/Ahem.ttf); | 5 src: url(../../resources/Ahem.ttf); |
| 6 } | 6 } |
| 7 text { | 7 text { |
| 8 font-family: 'myahem'; | 8 font-family: 'myahem'; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 <svg width="100" height="100"> | 11 <svg width="100" height="100"> |
| 12 <text id="ref" x="15 65" y="10 20" fill="red">A B C</text> | 12 <text id="ref" x="15 65" y="10 20" fill="red">A B C</text> |
| 13 <text id="target" x="15" y="10 20" fill="green">A B C</text> | 13 <text id="target" x="15" y="10 20" fill="green">A B C</text> |
| 14 <text id="source" x="50" y="50 60" fill="blue">X Y Z</text> | 14 <text id="source" x="50" y="50 60" fill="blue">X Y Z</text> |
| 15 </svg> | 15 </svg> |
| 16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 16 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 17 <script> | 17 <script> |
| 18 testIsAsync = true; | 18 testIsAsync = true; |
| 19 window.onload = runRepaintTest; | 19 window.onload = runRepaintAndPixelTest; |
| 20 | 20 |
| 21 function repaintTest() { | 21 function repaintTest() { |
| 22 var moved = document.querySelector('#source').y.baseVal.removeItem(1); | 22 var moved = document.querySelector('#source').y.baseVal.removeItem(1); |
| 23 document.querySelector('#target').x.baseVal.appendItem(moved); | 23 document.querySelector('#target').x.baseVal.appendItem(moved); |
| 24 | 24 |
| 25 requestAnimationFrame(function() { | 25 requestAnimationFrame(function() { |
| 26 moved.value = 65; | 26 moved.value = 65; |
| 27 if (window.testRunner) | 27 if (window.testRunner) |
| 28 finishRepaintTest(); | 28 finishRepaintTest(); |
| 29 }); | 29 }); |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| OLD | NEW |