| OLD | NEW |
| 1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="400" height
="400" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest
()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="400" height
="400" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest
()"> |
| 2 <script xlink:href="../resources/text-based-repaint.js"></script> | 2 <script xlink:href="../../../paint/invalidation/resources/text-based-repaint.js
"></script> |
| 3 <script type="text/javascript"> | 3 <script type="text/javascript"> |
| 4 window.testIsAsync = true; | 4 window.testIsAsync = true; |
| 5 window.outputRepaintRects = false; | 5 window.outputRepaintRects = false; |
| 6 var start = new Date(); | 6 var start = new Date(); |
| 7 </script> | 7 </script> |
| 8 <text x="10" y="15" font-weight="900" font-size="5">SVG Performance test.</text
> | 8 <text x="10" y="15" font-weight="900" font-size="5">SVG Performance test.</text
> |
| 9 <text x="10" y="95" font-weight="900" font-size="5">Test not started.</text> | 9 <text x="10" y="95" font-weight="900" font-size="5">Test not started.</text> |
| 10 <rect x="0" y="0" height="100" width="100" stroke="black" fill="none"/> | 10 <rect x="0" y="0" height="100" width="100" stroke="black" fill="none"/> |
| 11 <script type="text/javascript"><![CDATA[ | 11 <script type="text/javascript"><![CDATA[ |
| 12 var svg = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg')
[0]; | 12 var svg = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg')
[0]; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 var end = new Date(); | 71 var end = new Date(); |
| 72 var elapsed = (end - start) / 1000; | 72 var elapsed = (end - start) / 1000; |
| 73 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; | 73 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; |
| 74 if (parent.reportResults) parent.reportResults(end - start); | 74 if (parent.reportResults) parent.reportResults(end - start); |
| 75 } | 75 } |
| 76 finishRepaintTest(); | 76 finishRepaintTest(); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 ]]></script> | 79 ]]></script> |
| 80 </svg> | 80 </svg> |
| OLD | NEW |