| 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::initialize() API. | 6 This is a test of the SVGLengthList::initialize() 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 Check initial list state of text4 | 31 Check initial list state of text4 |
| 32 PASS text4.x.baseVal.numberOfItems is 1 | 32 PASS text4.x.baseVal.numberOfItems is 1 |
| 33 PASS text4.x.baseVal.getItem(0).value is 500 | 33 PASS text4.x.baseVal.getItem(0).value is 500 |
| 34 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 34 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 35 | 35 |
| 36 Create a new SVGLength object, that will be the only x coordinate in the first t
ext element. | 36 Create a new SVGLength object, that will be the only x coordinate in the first t
ext element. |
| 37 PASS newLength.value is 50 | 37 PASS newLength.value is 50 |
| 38 | 38 |
| 39 Initialize SVGLengthList with 'newLength' | 39 Initialize SVGLengthList with 'newLength' |
| 40 PASS text1.x.baseVal.initialize(newLength) is newLength | 40 FAIL text1.x.baseVal.initialize(newLength) should be [object SVGLength]. Was [ob
ject SVGLength]. |
| 41 PASS text1.x.baseVal.getItem(0) is newLength | 41 FAIL text1.x.baseVal.getItem(0) should be [object SVGLength]. Was [object SVGLen
gth]. |
| 42 | 42 |
| 43 Take the second x item '500' of the second text element, store it in 'itemInAnot
herList' change it to '50' | 43 Take the second x item '500' of the second text element, store it in 'itemInAnot
herList' change it to '50' |
| 44 PASS text2.x.baseVal.getItem(1).value is 500 | 44 PASS text2.x.baseVal.getItem(1).value is 500 |
| 45 PASS text2.x.baseVal.getItem(1).value is 50 | 45 PASS text2.x.baseVal.getItem(1).value is 50 |
| 46 | 46 |
| 47 Override the third text elements x list with the item x=50 from the second text
element, where it should be removed afterwards | 47 Override the third text elements x list with the item x=50 from the second text
element, where it should be removed afterwards |
| 48 PASS text3.x.baseVal.initialize(itemInAnotherList) is itemInAnotherList | 48 FAIL text3.x.baseVal.initialize(itemInAnotherList) should be [object SVGLength].
Was [object SVGLength]. |
| 49 PASS text3.x.baseVal.getItem(0).value is 50 | 49 PASS text3.x.baseVal.getItem(0).value is 50 |
| 50 PASS text2.x.baseVal.getItem(0).value is 50 | 50 PASS text2.x.baseVal.getItem(0).value is 50 |
| 51 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 51 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 52 | 52 |
| 53 Assure that the 'itemInAnotherList' item is still live anymore, set value to 999
then back to 50 | 53 Assure that the 'itemInAnotherList' item is still live anymore, set value to 999
then back to 50 |
| 54 PASS itemInAnotherList.value = 999; is 999 | 54 PASS itemInAnotherList.value = 999; is 999 |
| 55 PASS itemInAnotherList.value is 999 | 55 PASS itemInAnotherList.value is 999 |
| 56 PASS text3.x.baseVal.getItem(0).value is 999 | 56 PASS text3.x.baseVal.getItem(0).value is 999 |
| 57 PASS itemInAnotherList.value = 50; is 50 | 57 PASS itemInAnotherList.value = 50; is 50 |
| 58 PASS itemInAnotherList.value is 50 | 58 PASS itemInAnotherList.value is 50 |
| 59 PASS text3.x.baseVal.getItem(0).value is 50 | 59 PASS text3.x.baseVal.getItem(0).value is 50 |
| 60 | 60 |
| 61 Move item from text3 to text4 | 61 Move item from text3 to text4 |
| 62 PASS text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) is itemInAnotherList | 62 FAIL text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) should be [object SV
GLength]. Was [object SVGLength]. |
| 63 PASS text4.x.baseVal.getItem(0).value is 50 | 63 PASS text4.x.baseVal.getItem(0).value is 50 |
| 64 PASS text3.x.baseVal.getItem(0) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 64 PASS text3.x.baseVal.getItem(0) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 65 | 65 |
| 66 Initialize text3 using setAttribute('x', '50') | 66 Initialize text3 using setAttribute('x', '50') |
| 67 PASS text3.x.baseVal.getItem(0).value is 50 | 67 PASS text3.x.baseVal.getItem(0).value is 50 |
| 68 | 68 |
| 69 Final check whether the lists all look like expected | 69 Final check whether the lists all look like expected |
| 70 PASS text1.x.baseVal.getItem(0).value is 50 | 70 PASS text1.x.baseVal.getItem(0).value is 50 |
| 71 PASS text2.x.baseVal.getItem(0).value is 50 | 71 PASS text2.x.baseVal.getItem(0).value is 50 |
| 72 PASS text3.x.baseVal.getItem(0).value is 50 | 72 PASS text3.x.baseVal.getItem(0).value is 50 |
| 73 PASS text4.x.baseVal.getItem(0).value is 50 | 73 PASS text4.x.baseVal.getItem(0).value is 50 |
| 74 PASS text1.x.baseVal.numberOfItems is 1 | 74 PASS text1.x.baseVal.numberOfItems is 1 |
| 75 PASS text2.x.baseVal.numberOfItems is 1 | 75 PASS text2.x.baseVal.numberOfItems is 1 |
| 76 PASS text3.x.baseVal.numberOfItems is 1 | 76 PASS text3.x.baseVal.numberOfItems is 1 |
| 77 PASS text4.x.baseVal.numberOfItems is 1 | 77 PASS text4.x.baseVal.numberOfItems is 1 |
| 78 PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 78 PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 79 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 79 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 80 PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 80 PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 81 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. | 81 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa
s negative, or greater than the allowed value.. |
| 82 | 82 |
| 83 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same | 83 The test passes if you only see 'PASS' messages, and all five text elements on t
op look the same |
| 84 | 84 |
| 85 PASS successfullyParsed is true | 85 PASS successfullyParsed is true |
| 86 | 86 |
| 87 TEST COMPLETE | 87 TEST COMPLETE |
| 88 | 88 |
| OLD | NEW |