OLD | NEW |
| (Empty) |
1 This is a test of the SVGPathSegList::removeItem() API. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial 'pathSegList' value of path1 | |
8 PASS path1.pathSegList.numberOfItems is 5 | |
9 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | |
10 PASS path1.pathSegList.getItem(0).x is 0 | |
11 PASS path1.pathSegList.getItem(0).y is 0 | |
12 PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" | |
13 PASS path1.pathSegList.getItem(1).x is 100 | |
14 PASS path1.pathSegList.getItem(1).y is 0 | |
15 PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]" | |
16 PASS path1.pathSegList.getItem(2).x is 100 | |
17 PASS path1.pathSegList.getItem(2).y is 100 | |
18 PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegClosePath]" | |
19 PASS path1.pathSegList.getItem(4).toString() is "[object SVGPathSegLinetoAbs]" | |
20 PASS path1.pathSegList.getItem(4).x is 0 | |
21 PASS path1.pathSegList.getItem(4).y is 100 | |
22 | |
23 Check initial 'pathSegList' value of path2 | |
24 PASS path2.pathSegList.numberOfItems is 5 | |
25 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | |
26 PASS path2.pathSegList.getItem(0).x is 0 | |
27 PASS path2.pathSegList.getItem(0).y is 0 | |
28 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizon
talRel]" | |
29 PASS path2.pathSegList.getItem(1).x is 100 | |
30 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegClosePath]" | |
31 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoVertica
lRel]" | |
32 PASS path2.pathSegList.getItem(3).y is 100 | |
33 PASS path2.pathSegList.getItem(4).toString() is "[object SVGPathSegLinetoHorizon
talRel]" | |
34 PASS path2.pathSegList.getItem(4).x is -100 | |
35 | |
36 Remove fourth item of path1 | |
37 PASS path1.pathSegList.removeItem(3).toString() is "[object SVGPathSegClosePath]
" | |
38 | |
39 Remove third item of path2 | |
40 PASS path2.pathSegList.removeItem(2).toString() is "[object SVGPathSegClosePath]
" | |
41 PASS successfullyParsed is true | |
42 | |
43 TEST COMPLETE | |
44 | |
OLD | NEW |