OLD | NEW |
| (Empty) |
1 ABC | |
2 This is a test of the SVGLengthList::getItem() API. | |
3 | |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
5 | |
6 | |
7 Check lengths of text x item lists | |
8 PASS text1.x.baseVal.numberOfItems is 3 | |
9 | |
10 Test with various index parameters | |
11 PASS text1.x.baseVal.getItem(-100) threw exception IndexSizeError: Failed to exe
cute 'getItem' on 'SVGLengthList': The index provided (4294967196) is greater th
an the maximum bound (3).. | |
12 PASS text1.x.baseVal.getItem(-1) threw exception IndexSizeError: Failed to execu
te 'getItem' on 'SVGLengthList': The index provided (4294967295) is greater than
the maximum bound (3).. | |
13 PASS text1.x.baseVal.getItem(0).value is 50 | |
14 PASS text1.x.baseVal.getItem(1).value is 100 | |
15 PASS text1.x.baseVal.getItem(2).value is 150 | |
16 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut
e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal
to the maximum bound (3).. | |
17 PASS text1.x.baseVal.getItem(100) threw exception IndexSizeError: Failed to exec
ute 'getItem' on 'SVGLengthList': The index provided (100) is greater than the m
aximum bound (3).. | |
18 PASS successfullyParsed is true | |
19 | |
20 TEST COMPLETE | |
21 | |
OLD | NEW |