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