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 <radialGradient id="gradient"> | 9 <radialGradient id="gradient"> |
10 <stop offset="0%" stop-color="#00F" /> | 10 <stop offset="0%" stop-color="#00F" /> |
11 <stop offset="10%" stop-color="#F60" /> | 11 <stop offset="10%" stop-color="#F60" /> |
12 <stop offset="90%" stop-color="#FF6" /> | 12 <stop offset="90%" stop-color="#FF6" /> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 else { | 79 else { |
80 var end = new Date(); | 80 var end = new Date(); |
81 var elapsed = (end - start) / 1000; | 81 var elapsed = (end - start) / 1000; |
82 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; | 82 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; |
83 if (parent.reportResults) parent.reportResults(end - start); | 83 if (parent.reportResults) parent.reportResults(end - start); |
84 } | 84 } |
85 } | 85 } |
86 } | 86 } |
87 ]]></script> | 87 ]]></script> |
88 </svg> | 88 </svg> |
OLD | NEW |