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="runRepaintTest()"> | 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="../../../fast/repaint/resources/repaint.js"></script> | 2 <script xlink:href="../../../fast/repaint/resources/text-based-repaint.js"></sc
ript> |
3 <script type="text/javascript"> | 3 <script type="text/javascript"> |
4 var start = new Date(); | 4 var start = new Date(); |
5 </script> | 5 </script> |
6 <text x="10" y="15" font-weight="900" font-size="5">SVG Performance test.</text
> | 6 <text x="10" y="15" font-weight="900" font-size="5">SVG Performance test.</text
> |
7 <text x="10" y="95" font-weight="900" font-size="5">Test not started.</text> | 7 <text x="10" y="95" font-weight="900" font-size="5">Test not started.</text> |
8 <rect x="0" y="0" height="100" width="100" stroke="black" fill="none"/> | 8 <rect x="0" y="0" height="100" width="100" stroke="black" fill="none"/> |
9 <script type="text/javascript"><![CDATA[ | 9 <script type="text/javascript"><![CDATA[ |
10 var svg = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg')
[0]; | 10 var svg = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'svg')
[0]; |
11 var t = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'text')[
1]; | 11 var t = document.getElementsByTagNameNS('http://www.w3.org/2000/svg', 'text')[
1]; |
12 | 12 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 else { | 73 else { |
74 var end = new Date(); | 74 var end = new Date(); |
75 var elapsed = (end - start) / 1000; | 75 var elapsed = (end - start) / 1000; |
76 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; | 76 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; |
77 if (parent.reportResults) parent.reportResults(end - start); | 77 if (parent.reportResults) parent.reportResults(end - start); |
78 } | 78 } |
79 } | 79 } |
80 } | 80 } |
81 ]]></script> | 81 ]]></script> |
82 </svg> | 82 </svg> |
OLD | NEW |