OLD | NEW |
| (Empty) |
1 <body> | |
2 <script src="../resources/magnitude-perf.js"></script> | |
3 <script> | |
4 var path; | |
5 | |
6 function setup(magnitude) | |
7 { | |
8 path = document.createElementNS("http://www.w3.org/2000/svg", "path"); | |
9 var pathD = ""; | |
10 for (var i = 0; i < magnitude; i++) | |
11 pathD += "M20 20Z"; | |
12 path.setAttribute('d', pathD); | |
13 } | |
14 | |
15 function test(magnitude) | |
16 { | |
17 path.pathSegList.appendItem(path.createSVGPathSegLinetoAbs(20, 20)); | |
18 } | |
19 | |
20 Magnitude.description("Tests that SVG path.appendItem() is constant with res
pect to the length of the path."); | |
21 Magnitude.tolerance = 0.60; | |
22 Magnitude.trim = 2; | |
23 Magnitude.run(setup, test, Magnitude.CONSTANT); | |
24 </script> | |
25 </body> | |
OLD | NEW |