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