OLD | NEW |
| (Empty) |
1 ABC | |
2 ABC | |
3 This is a test of the SVGLengthList::removeItem() API. | |
4 | |
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
6 | |
7 | |
8 | |
9 Check initial list state of text1 | |
10 PASS text.x.baseVal.numberOfItems is 5 | |
11 PASS text.x.baseVal.getItem(0).value is 500 | |
12 PASS text.x.baseVal.getItem(1).value is 50 | |
13 PASS text.x.baseVal.getItem(2).value is 100 | |
14 PASS text.x.baseVal.getItem(3).value is 900 | |
15 PASS text.x.baseVal.getItem(4).value is 150 | |
16 PASS text.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execute
'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal t
o the maximum bound (5).. | |
17 | |
18 Remove fourth item of text1 | |
19 PASS text.x.baseVal.removeItem(0).value is 500 | |
20 | |
21 Remove third item of text1 | |
22 PASS text.x.baseVal.removeItem(2).value is 900 | |
23 | |
24 The test passes if you only see 'PASS' messages, and both text elements on top l
ook the same | |
25 | |
26 PASS successfullyParsed is true | |
27 | |
28 TEST COMPLETE | |
29 | |
OLD | NEW |