PASS text1.x.baseVal.getItem(0).value is 500
PASS text1.x.baseVal.getItem(1).value is 1000
PASS text1.x.baseVal.getItem(2).value is 1500
-PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
Replace the first three values in text1 x list with 'newLength1/2/3'
PASS text1.x.baseVal.replaceItem(newLength1, 0) is newLength1
PASS text1.x.baseVal.replaceItem(newLength2, 1) is newLength2
PASS text1.x.baseVal.replaceItem(newLength3, 2) is newLength3
-PASS text1.x.baseVal.replaceItem(newLength3, -100) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS text1.x.baseVal.replaceItem(newLength3, -1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS text1.x.baseVal.replaceItem(newLength3, 3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS text1.x.baseVal.replaceItem(newLength3, 100) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text1.x.baseVal.replaceItem(newLength3, -100) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index provided (4294967196) is greater than the maximum bound (3)..
+PASS text1.x.baseVal.replaceItem(newLength3, -1) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index provided (4294967295) is greater than the maximum bound (3)..
+PASS text1.x.baseVal.replaceItem(newLength3, 3) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
+PASS text1.x.baseVal.replaceItem(newLength3, 100) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index provided (100) is greater than the maximum bound (3)..
Verify that the text1 x value list is correct
PASS text1.x.baseVal.numberOfItems is 3
PASS text2.x.baseVal.getItem(1).value is 100
PASS text2.x.baseVal.getItem(2).value is 50
PASS text2.x.baseVal.getItem(3).value is 150
-PASS text2.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text2.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
Replace the first item in text2 x list with the third item in the list
PASS text2.x.baseVal.replaceItem(text2.x.baseVal.getItem(2), 0).value is 50
PASS text3.x.baseVal.getItem(2).value is 100
PASS text3.x.baseVal.getItem(3).value is 100
PASS text3.x.baseVal.getItem(4).value is 150
-PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text3.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
Check initial list state of text4
PASS text4.x.baseVal.numberOfItems is 4
PASS text4.x.baseVal.getItem(1).value is 50
PASS text4.x.baseVal.getItem(2).value is 150
PASS text4.x.baseVal.getItem(3).value is 150
-PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
Replace the first item in text4 x list with the second item in the text3 x list
PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(1), 0).value is 50
PASS text3.x.baseVal.getItem(1).value is 100
PASS text3.x.baseVal.getItem(2).value is 100
PASS text3.x.baseVal.getItem(3).value is 150
-PASS text3.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text3.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
PASS text4.x.baseVal.numberOfItems is 4
PASS text4.x.baseVal.getItem(0).value is 50
PASS text4.x.baseVal.getItem(1).value is 50
PASS text4.x.baseVal.getItem(2).value is 150
PASS text4.x.baseVal.getItem(3).value is 150
-PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
Replace the second item in text4 x list with the second item in the text4 x list
PASS text4.x.baseVal.replaceItem(text3.x.baseVal.getItem(2), 1).value is 100
PASS text4.x.baseVal.getItem(1).value is 100
PASS text4.x.baseVal.getItem(2).value is 150
PASS text4.x.baseVal.getItem(3).value is 150
-PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
Check final list state of text1
PASS text1.x.baseVal.numberOfItems is 3
PASS text1.x.baseVal.getItem(0).value is 50
PASS text1.x.baseVal.getItem(1).value is 100
PASS text1.x.baseVal.getItem(2).value is 150
-PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
Check final list state of text2
PASS text2.x.baseVal.numberOfItems is 3
PASS text2.x.baseVal.getItem(0).value is 50
PASS text2.x.baseVal.getItem(1).value is 100
PASS text2.x.baseVal.getItem(2).value is 150
-PASS text2.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text2.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
Check final list state of text3
PASS text3.x.baseVal.numberOfItems is 3
PASS text3.x.baseVal.getItem(0).value is 50
PASS text3.x.baseVal.getItem(1).value is 100
PASS text3.x.baseVal.getItem(2).value is 150
-PASS text3.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text3.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
Check final list state of text4
PASS text4.x.baseVal.numberOfItems is 4
PASS text4.x.baseVal.getItem(1).value is 100
PASS text4.x.baseVal.getItem(2).value is 150
PASS text4.x.baseVal.getItem(3).value is 150
-PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text4.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
The test passes if you only see 'PASS' messages, and all five text elements on top look the same