OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 | 7 |
8 var path = document.createElementNS("http://www.w3.org/2000/svg", "path"
); | 8 var path = document.createElementNS("http://www.w3.org/2000/svg", "path"
); |
9 var seg1 = path.createSVGPathSegLinetoAbs(10, 10); | 9 var seg1 = path.createSVGPathSegLinetoAbs(10, 10); |
10 var seg2 = path.createSVGPathSegLinetoAbs(100, 100); | 10 var seg2 = path.createSVGPathSegLinetoAbs(100, 100); |
11 | 11 |
12 path.pathSegList.initialize(seg1); | 12 path.pathSegList.initialize(seg1); |
13 path.pathSegList.initialize(seg2); | 13 path.pathSegList.initialize(seg2); |
14 path.pathSegList.initialize(seg1); | 14 path.pathSegList.initialize(seg1); |
15 path.pathSegList.replaceItem(seg2, 0); | 15 path.pathSegList.replaceItem(seg2, 0); |
16 path.pathSegList.initialize(seg1); | 16 path.pathSegList.initialize(seg1); |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 <div>PASS: Did not crash.</div> | 19 <div>PASS: Did not crash.</div> |
20 </html> | 20 </html> |
OLD | NEW |