OLD | NEW |
1 This is a test of the SVGPathSegList::appendItem() API. | 1 This is a test of the SVGPathSegList::appendItem() 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 3 | 8 PASS path1.pathSegList.numberOfItems is 3 |
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 100 | 10 PASS path1.pathSegList.getItem(0).x is 100 |
(...skipping 25 matching lines...) Expand all Loading... |
36 PASS path1.pathSegList.clear() is undefined. | 36 PASS path1.pathSegList.clear() is undefined. |
37 | 37 |
38 Verify that item0 is still alive, and can be modified | 38 Verify that item0 is still alive, and can be modified |
39 PASS item0.x is 100 | 39 PASS item0.x is 100 |
40 PASS item0.y is 100 | 40 PASS item0.y is 100 |
41 PASS item0.x += 50 is 150 | 41 PASS item0.x += 50 is 150 |
42 PASS item0.y += 50 is 150 | 42 PASS item0.y += 50 is 150 |
43 | 43 |
44 Check intermediate list state of path1 | 44 Check intermediate list state of path1 |
45 PASS path1.pathSegList.numberOfItems is 0 | 45 PASS path1.pathSegList.numberOfItems is 0 |
46 PASS path1.pathSegList.getItem(0) threw exception Error: IndexSizeError: DOM Exc
eption 1. | 46 PASS path1.pathSegList.getItem(0) threw exception IndexSizeError: Index or size
was negative, or greater than the allowed value.. |
47 | 47 |
48 Check intermediate list state of path2 | 48 Check intermediate list state of path2 |
49 PASS path2.pathSegList.numberOfItems is 3 | 49 PASS path2.pathSegList.numberOfItems is 3 |
50 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | 50 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" |
51 PASS path2.pathSegList.getItem(0).x is 50 | 51 PASS path2.pathSegList.getItem(0).x is 50 |
52 PASS path2.pathSegList.getItem(0).y is 50 | 52 PASS path2.pathSegList.getItem(0).y is 50 |
53 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" | 53 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" |
54 PASS path2.pathSegList.getItem(1).x is 0 | 54 PASS path2.pathSegList.getItem(1).x is 0 |
55 PASS path2.pathSegList.getItem(1).y is 100 | 55 PASS path2.pathSegList.getItem(1).y is 100 |
56 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]" | 56 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]" |
(...skipping 29 matching lines...) Expand all Loading... |
86 | 86 |
87 Check final list state of path2 | 87 Check final list state of path2 |
88 PASS path2.pathSegList.numberOfItems is 1 | 88 PASS path2.pathSegList.numberOfItems is 1 |
89 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | 89 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" |
90 PASS path2.pathSegList.getItem(0).x is 150 | 90 PASS path2.pathSegList.getItem(0).x is 150 |
91 PASS path2.pathSegList.getItem(0).y is 150 | 91 PASS path2.pathSegList.getItem(0).y is 150 |
92 PASS successfullyParsed is true | 92 PASS successfullyParsed is true |
93 | 93 |
94 TEST COMPLETE | 94 TEST COMPLETE |
95 | 95 |
OLD | NEW |