| OLD | NEW |
| 1 ABC | 1 ABC |
| 2 ABC | 2 ABC |
| 3 ABC | 3 ABC |
| 4 ABC | 4 ABC |
| 5 ABC | 5 ABC |
| 6 This is a test of the SVGLengthList::replaceItem() API. | 6 This is a test of the SVGLengthList::replaceItem() API. |
| 7 | 7 |
| 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 9 | 9 |
| 10 | 10 |
| 11 | 11 |
| 12 Create three SVGLength objects, with values=50,100,150 | 12 Create three SVGLength objects, with values=50,100,150 |
| 13 PASS newLength1.value is 50 | 13 PASS newLength1.value is 50 |
| 14 PASS newLength2.value is 100 | 14 PASS newLength2.value is 100 |
| 15 PASS newLength3.value is 150 | 15 PASS newLength3.value is 150 |
| 16 | 16 |
| 17 Check initial list state of text1 | 17 Check initial list state of text1 |
| 18 PASS text1.x.baseVal.numberOfItems is 3 | 18 PASS text1.x.baseVal.numberOfItems is 3 |
| 19 PASS text1.x.baseVal.getItem(0).value is 500 | 19 PASS text1.x.baseVal.getItem(0).value is 500 |
| 20 PASS text1.x.baseVal.getItem(1).value is 1000 | 20 PASS text1.x.baseVal.getItem(1).value is 1000 |
| 21 PASS text1.x.baseVal.getItem(2).value is 1500 | 21 PASS text1.x.baseVal.getItem(2).value is 1500 |
| 22 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 22 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 23 | 23 |
| 24 Replace the first three values in text1 x list with 'newLength1/2/3' | 24 Replace the first three values in text1 x list with 'newLength1/2/3' |
| 25 PASS text1.x.baseVal.replaceItem(newLength1, 0) is newLength1 | 25 FAIL text1.x.baseVal.replaceItem(newLength1, 0) should be [object SVGLength]. Wa
s [object SVGLength]. |
| 26 PASS text1.x.baseVal.replaceItem(newLength2, 1) is newLength2 | 26 FAIL text1.x.baseVal.replaceItem(newLength2, 1) should be [object SVGLength]. Wa
s [object SVGLength]. |
| 27 PASS text1.x.baseVal.replaceItem(newLength3, 2) is newLength3 | 27 FAIL text1.x.baseVal.replaceItem(newLength3, 2) should be [object SVGLength]. Wa
s [object SVGLength]. |
| 28 PASS text1.x.baseVal.replaceItem(newLength3, -100) threw exception IndexSizeErro
r: Index or size was negative, or greater than the allowed value.. | 28 PASS text1.x.baseVal.replaceItem(newLength3, -100) threw exception IndexSizeErro
r: Index or size was negative, or greater than the allowed value.. |
| 29 PASS text1.x.baseVal.replaceItem(newLength3, -1) threw exception IndexSizeError:
Index or size was negative, or greater than the allowed value.. | 29 PASS text1.x.baseVal.replaceItem(newLength3, -1) threw exception IndexSizeError:
Index or size was negative, or greater than the allowed value.. |
| 30 PASS text1.x.baseVal.replaceItem(newLength3, 3) threw exception IndexSizeError:
Index or size was negative, or greater than the allowed value.. | 30 PASS text1.x.baseVal.replaceItem(newLength3, 3) threw exception IndexSizeError:
Index or size was negative, or greater than the allowed value.. |
| 31 PASS text1.x.baseVal.replaceItem(newLength3, 100) threw exception IndexSizeError
: Index or size was negative, or greater than the allowed value.. | 31 PASS text1.x.baseVal.replaceItem(newLength3, 100) threw exception IndexSizeError
: Index or size was negative, or greater than the allowed value.. |
| 32 | 32 |
| 33 Verify that the text1 x value list is correct | 33 Verify that the text1 x value list is correct |
| 34 PASS text1.x.baseVal.numberOfItems is 3 | 34 PASS text1.x.baseVal.numberOfItems is 3 |
| 35 PASS text1.x.baseVal.getItem(0).value is 50 | 35 PASS text1.x.baseVal.getItem(0).value is 50 |
| 36 PASS text1.x.baseVal.getItem(1).value is 100 | 36 PASS text1.x.baseVal.getItem(1).value is 100 |
| 37 PASS text1.x.baseVal.getItem(2).value is 150 | 37 PASS text1.x.baseVal.getItem(2).value is 150 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 PASS text4.x.baseVal.getItem(2).value is 150 | 120 PASS text4.x.baseVal.getItem(2).value is 150 |
| 121 PASS text4.x.baseVal.getItem(3).value is 150 | 121 PASS text4.x.baseVal.getItem(3).value is 150 |
| 122 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 122 PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 123 | 123 |
| 124 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same | 124 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same |
| 125 | 125 |
| 126 PASS successfullyParsed is true | 126 PASS successfullyParsed is true |
| 127 | 127 |
| 128 TEST COMPLETE | 128 TEST COMPLETE |
| 129 | 129 |
| OLD | NEW |