OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 600 600" xmlns:xlink=
"http://www.w3.org/1999/xlink" onload="runRepaintTest()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 600 600" 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 var max = 75; | 5 var max = 75; |
6 | 6 |
7 // When running in DRT only bounce ten times otherwhise this test takes way to
o long | 7 // When running in DRT only bounce ten times otherwhise this test takes way to
o long |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 max = 10; | 9 max = 10; |
10 </script> | 10 </script> |
11 <rect fill="none" stroke="black" x="-190" y="-190" width="580" height="580" rx=
"40"/> | 11 <rect fill="none" stroke="black" x="-190" y="-190" width="580" height="580" rx=
"40"/> |
12 <text x="-150" y="-150" font-size="10">SVG Performance test.</text> | 12 <text x="-150" y="-150" font-size="10">SVG Performance test.</text> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 else { | 287 else { |
288 var end = new Date(); | 288 var end = new Date(); |
289 var elapsed = (end - start) / 1000; | 289 var elapsed = (end - start) / 1000; |
290 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; | 290 t.firstChild.data = 'Test completed in ' + elapsed.toFixed(2) + 's.'; |
291 if (parent.reportResults) parent.reportResults(end - start); | 291 if (parent.reportResults) parent.reportResults(end - start); |
292 } | 292 } |
293 } | 293 } |
294 } | 294 } |
295 ]]></script> | 295 ]]></script> |
296 </svg> | 296 </svg> |
OLD | NEW |