OLD | NEW |
1 ABC | 1 ABC |
2 ABC | 2 ABC |
3 This is a test of the SVGLengthList::insertItemBefore() API. | 3 This is a test of the SVGLengthList::insertItemBefore() API. |
4 | 4 |
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
6 | 6 |
7 | 7 |
8 | 8 |
9 Create three SVGLength objects, with values=50,100,150 | 9 Create three SVGLength objects, with values=50,100,150 |
10 PASS newLength1.value is 50 | 10 PASS newLength1.value is 50 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 PASS text1.x.baseVal.insertItemBefore(newLength3, 2) is newLength3 | 54 PASS text1.x.baseVal.insertItemBefore(newLength3, 2) is newLength3 |
55 PASS text1.x.baseVal.numberOfItems is 6 | 55 PASS text1.x.baseVal.numberOfItems is 6 |
56 PASS text1.x.baseVal.getItem(0).value is 100 | 56 PASS text1.x.baseVal.getItem(0).value is 100 |
57 PASS text1.x.baseVal.getItem(1).value is 500 | 57 PASS text1.x.baseVal.getItem(1).value is 500 |
58 PASS text1.x.baseVal.getItem(2).value is 150 | 58 PASS text1.x.baseVal.getItem(2).value is 150 |
59 PASS text1.x.baseVal.getItem(3).value is 1000 | 59 PASS text1.x.baseVal.getItem(3).value is 1000 |
60 PASS text1.x.baseVal.getItem(4).value is 1500 | 60 PASS text1.x.baseVal.getItem(4).value is 1500 |
61 PASS text1.x.baseVal.getItem(5).value is 50 | 61 PASS text1.x.baseVal.getItem(5).value is 50 |
62 PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal
to the maximum bound (6).. | 62 PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal
to the maximum bound (6).. |
63 | 63 |
64 Insert item 'newLength3' at position=1, between '100' and '500', remove it from
the old position=2 afterwards. | 64 Insert item 'newLength3' at position=1, between '100' and '500', should not remo
ve it from the old position=2 afterwards. |
65 PASS text1.x.baseVal.insertItemBefore(newLength3, 1) is newLength3 | 65 PASS text1.x.baseVal.insertItemBefore(newLength3, 1) is newLength3 |
66 PASS text1.x.baseVal.numberOfItems is 6 | 66 PASS text1.x.baseVal.numberOfItems is 7 |
67 PASS text1.x.baseVal.getItem(0).value is 100 | 67 PASS text1.x.baseVal.getItem(0).value is 100 |
68 PASS text1.x.baseVal.getItem(1).value is 150 | 68 PASS text1.x.baseVal.getItem(1).value is 150 |
69 PASS text1.x.baseVal.getItem(2).value is 500 | 69 PASS text1.x.baseVal.getItem(2).value is 500 |
70 PASS text1.x.baseVal.getItem(3).value is 1000 | 70 PASS text1.x.baseVal.getItem(3).value is 150 |
71 PASS text1.x.baseVal.getItem(4).value is 1500 | 71 PASS text1.x.baseVal.getItem(4).value is 1000 |
72 PASS text1.x.baseVal.getItem(5).value is 50 | 72 PASS text1.x.baseVal.getItem(5).value is 1500 |
73 PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal
to the maximum bound (6).. | 73 PASS text1.x.baseVal.getItem(6).value is 50 |
| 74 PASS text1.x.baseVal.getItem(7) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (7) is greater than or equal
to the maximum bound (7).. |
74 | 75 |
75 Insert item 'newLength3' at position=0, before '100', remove it from the old pos
ition=5 afterwards. | 76 Insert item 'newLength1' at position=0, before '100', should not remove it from
the old position=6 afterwards. |
76 PASS text1.x.baseVal.insertItemBefore(newLength1, 0) is newLength1 | 77 PASS text1.x.baseVal.insertItemBefore(newLength1, 0) is newLength1 |
77 PASS text1.x.baseVal.numberOfItems is 6 | 78 PASS text1.x.baseVal.numberOfItems is 8 |
78 PASS text1.x.baseVal.getItem(0).value is 50 | 79 PASS text1.x.baseVal.getItem(0).value is 50 |
79 PASS text1.x.baseVal.getItem(1).value is 100 | 80 PASS text1.x.baseVal.getItem(1).value is 100 |
80 PASS text1.x.baseVal.getItem(2).value is 150 | 81 PASS text1.x.baseVal.getItem(2).value is 150 |
81 PASS text1.x.baseVal.getItem(3).value is 500 | 82 PASS text1.x.baseVal.getItem(3).value is 500 |
82 PASS text1.x.baseVal.getItem(4).value is 1000 | 83 PASS text1.x.baseVal.getItem(4).value is 150 |
83 PASS text1.x.baseVal.getItem(5).value is 1500 | 84 PASS text1.x.baseVal.getItem(5).value is 1000 |
84 PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal
to the maximum bound (6).. | 85 PASS text1.x.baseVal.getItem(6).value is 1500 |
| 86 PASS text1.x.baseVal.getItem(7).value is 50 |
| 87 PASS text1.x.baseVal.getItem(8) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (8) is greater than or equal
to the maximum bound (8).. |
85 | 88 |
86 The test passes if you only see 'PASS' messages, and both text elements on top l
ook the same | 89 The test passes if you only see 'PASS' messages, and both text elements on top l
ook the same |
87 | 90 |
88 PASS successfullyParsed is true | 91 PASS successfullyParsed is true |
89 | 92 |
90 TEST COMPLETE | 93 TEST COMPLETE |
91 | 94 |
OLD | NEW |