| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html | 2 <html |
| 3 xmlns="http://www.w3.org/1999/xhtml" | 3 xmlns="http://www.w3.org/1999/xhtml" |
| 4 xmlns:svg="http://www.w3.org/2000/svg"> | 4 xmlns:svg="http://www.w3.org/2000/svg"> |
| 5 <head> | 5 <head> |
| 6 <script src="../../fast/repaint/resources/repaint.js"></script> | 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
| 8 function createSVGLength(e, value) { | 8 function createSVGLength(e, value) { |
| 9 var result = e.ownerSVGElement.createSVGLength(); | 9 var result = e.ownerSVGElement.createSVGLength(); |
| 10 result.value = value; | 10 result.value = value; |
| 11 return result; | 11 return result; |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 function repaintTest() { | 14 function repaintTest() { |
| 15 var e = document.getElementById("ttt"); | 15 var e = document.getElementById("ttt"); |
| 16 e.x.baseVal.initialize(createSVGLength(e, 200)); | 16 e.x.baseVal.initialize(createSVGLength(e, 200)); |
| 17 e.y.baseVal.initialize(createSVGLength(e, 20)); | 17 e.y.baseVal.initialize(createSVGLength(e, 20)); |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| 20 </head> | 20 </head> |
| 21 <body onload="runRepaintTest()"> | 21 <body onload="runRepaintAndPixelTest()"> |
| 22 <svg:svg | 22 <svg:svg |
| 23 xmlns="http://www.w3.org/2000/svg" | 23 xmlns="http://www.w3.org/2000/svg" |
| 24 version="1.1" baseProfile="full" width="800" height="600"> | 24 version="1.1" baseProfile="full" width="800" height="600"> |
| 25 <text id="ttt" x="10" y="200">Passes, if text is at 200x20</text> | 25 <text id="ttt" x="10" y="200">Passes, if text is at 200x20</text> |
| 26 </svg:svg> | 26 </svg:svg> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |