| OLD | NEW |
| 1 This is a test of the SVGPathSegList::replaceItem() API. | 1 This is a test of the SVGPathSegList::replaceItem() 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 6 | 8 PASS path1.pathSegList.numberOfItems is 6 |
| 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]" | 34 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]" |
| 35 PASS path2.pathSegList.getItem(2).x is 200 | 35 PASS path2.pathSegList.getItem(2).x is 200 |
| 36 PASS path2.pathSegList.getItem(2).y is 100 | 36 PASS path2.pathSegList.getItem(2).y is 100 |
| 37 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon
talRel]" | 37 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon
talRel]" |
| 38 PASS path2.pathSegList.getItem(3).x is -100 | 38 PASS path2.pathSegList.getItem(3).x is -100 |
| 39 | 39 |
| 40 Replace second item with third item of path1 | 40 Replace second item with third item of path1 |
| 41 PASS path1.pathSegList.replaceItem(path1.pathSegList.getItem(2), 1).toString() i
s "[object SVGPathSegLinetoAbs]" | 41 PASS path1.pathSegList.replaceItem(path1.pathSegList.getItem(2), 1).toString() i
s "[object SVGPathSegLinetoAbs]" |
| 42 | 42 |
| 43 Replace third item of path2 with fourth item of path1 | 43 Replace third item of path2 with fourth item of path1 |
| 44 PASS path2.pathSegList.replaceItem(path1.pathSegList.getItem(3), 2).toString() i
s "[object SVGPathSegLinetoVerticalRel]" | 44 PASS path2.pathSegList.replaceItem(path1.pathSegList.getItem(4), 2).toString() i
s "[object SVGPathSegLinetoVerticalRel]" |
| 45 |
| 46 Reset points attribute to M 0 0 L 100 0 v 100 |
| 47 PASS path1.setAttribute('d', 'M 0 0 L 100 0 v 100 h 100') is undefined. |
| 48 |
| 49 Replace fourth item of path1 with third item of path2 |
| 50 PASS path1.pathSegList.replaceItem(path2.pathSegList.getItem(3), 3).toString() i
s "[object SVGPathSegLinetoHorizontalRel]" |
| 45 | 51 |
| 46 Check final 'pathSegList' value of path1 | 52 Check final 'pathSegList' value of path1 |
| 47 PASS path1.pathSegList.numberOfItems is 4 | 53 PASS path1.pathSegList.numberOfItems is 4 |
| 48 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | 54 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" |
| 49 PASS path1.pathSegList.getItem(0).x is 0 | 55 PASS path1.pathSegList.getItem(0).x is 0 |
| 50 PASS path1.pathSegList.getItem(0).y is 0 | 56 PASS path1.pathSegList.getItem(0).y is 0 |
| 51 PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" | 57 PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]" |
| 52 PASS path1.pathSegList.getItem(1).x is 100 | 58 PASS path1.pathSegList.getItem(1).x is 100 |
| 53 PASS path1.pathSegList.getItem(1).y is 0 | 59 PASS path1.pathSegList.getItem(1).y is 0 |
| 54 PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]" | 60 PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVertica
lRel]" |
| 55 PASS path1.pathSegList.getItem(2).x is 100 | |
| 56 PASS path1.pathSegList.getItem(2).y is 100 | 61 PASS path1.pathSegList.getItem(2).y is 100 |
| 57 PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoAbs]" | 62 PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon
talRel]" |
| 58 PASS path1.pathSegList.getItem(3).x is 0 | 63 PASS path1.pathSegList.getItem(3).x is -100 |
| 59 PASS path1.pathSegList.getItem(3).y is 100 | |
| 60 | 64 |
| 61 Check final 'pathSegList' value of path2 | 65 Check final 'pathSegList' value of path2 |
| 62 PASS path2.pathSegList.numberOfItems is 4 | 66 PASS path2.pathSegList.numberOfItems is 4 |
| 63 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" | 67 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]" |
| 64 PASS path2.pathSegList.getItem(0).x is 0 | 68 PASS path2.pathSegList.getItem(0).x is 0 |
| 65 PASS path2.pathSegList.getItem(0).y is 0 | 69 PASS path2.pathSegList.getItem(0).y is 0 |
| 66 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizon
talRel]" | 70 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizon
talRel]" |
| 67 PASS path2.pathSegList.getItem(1).x is 100 | 71 PASS path2.pathSegList.getItem(1).x is 100 |
| 68 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVertica
lRel]" | 72 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVertica
lRel]" |
| 69 PASS path2.pathSegList.getItem(2).y is 100 | 73 PASS path2.pathSegList.getItem(2).y is 100 |
| 70 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon
talRel]" | 74 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon
talRel]" |
| 71 PASS path2.pathSegList.getItem(3).x is -100 | 75 PASS path2.pathSegList.getItem(3).x is -100 |
| 72 PASS successfullyParsed is true | 76 PASS successfullyParsed is true |
| 73 | 77 |
| 74 TEST COMPLETE | 78 TEST COMPLETE |
| 75 | 79 |
| OLD | NEW |