Index: LayoutTests/svg/dom/SVGLengthList-removeItem-expected.txt |
diff --git a/LayoutTests/svg/dom/SVGLengthList-removeItem-expected.txt b/LayoutTests/svg/dom/SVGLengthList-removeItem-expected.txt |
index 808c228d3979a1bc26e2b9a8c8c72398ef1c984f..6b87287ae2bc4c2fa0410611770b9bb3ade70299 100644 |
--- a/LayoutTests/svg/dom/SVGLengthList-removeItem-expected.txt |
+++ b/LayoutTests/svg/dom/SVGLengthList-removeItem-expected.txt |
@@ -1,102 +1,27 @@ |
ABC |
ABC |
-ABC |
-This is a test of the SVGLengthList::appendItem() API. |
+This is a test of the SVGLengthList::removeItem() API. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-Create a new SVGLength object, with value=150 |
-PASS newLength1.value is 150 |
- |
Check initial list state of text1 |
-PASS text1.x.baseVal.numberOfItems is 5 |
-PASS text1.x.baseVal.getItem(0).value is 500 |
-PASS text1.x.baseVal.getItem(1).value is 50 |
-PASS text1.x.baseVal.getItem(2).value is 100 |
-PASS text1.x.baseVal.getItem(3).value is 900 |
-PASS text1.x.baseVal.getItem(4).value is 1000 |
-PASS text1.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 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 1000 |
-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).. |
- |
-Append fourth item x=900 to the text1 x list |
-PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(3)) is text1.x.baseVal.getItem(4) |
-PASS text1.x.baseVal.numberOfItems is 5 |
-PASS text1.x.baseVal.getItem(0).value is 500 |
-PASS text1.x.baseVal.getItem(1).value is 50 |
-PASS text1.x.baseVal.getItem(2).value is 100 |
-PASS text1.x.baseVal.getItem(3).value is 1000 |
-PASS text1.x.baseVal.getItem(4).value is 900 |
-PASS text1.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).. |
- |
-Append first item x=500 to the text1 x list |
-PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(0)) is text1.x.baseVal.getItem(4) |
-PASS text1.x.baseVal.numberOfItems is 5 |
-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 1000 |
-PASS text1.x.baseVal.getItem(3).value is 900 |
-PASS text1.x.baseVal.getItem(4).value is 500 |
-PASS text1.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).. |
- |
-Append 'newLength1' to the text1 x list |
-PASS text1.x.baseVal.appendItem(newLength1) is text1.x.baseVal.getItem(5) |
-PASS text1.x.baseVal.numberOfItems is 6 |
-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 1000 |
-PASS text1.x.baseVal.getItem(3).value is 900 |
-PASS text1.x.baseVal.getItem(4).value is 500 |
-PASS text1.x.baseVal.getItem(5).value is 150 |
-PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal to the maximum bound (6).. |
+PASS text.x.baseVal.numberOfItems is 5 |
+PASS text.x.baseVal.getItem(0).value is 500 |
+PASS text.x.baseVal.getItem(1).value is 50 |
+PASS text.x.baseVal.getItem(2).value is 100 |
+PASS text.x.baseVal.getItem(3).value is 900 |
+PASS text.x.baseVal.getItem(4).value is 150 |
+PASS text.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).. |
-Append third and fourth item of the text1 x list to the text2 x list |
-PASS text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 1000 |
-PASS text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 900 |
-PASS text1.x.baseVal.numberOfItems is 4 |
-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 500 |
-PASS text1.x.baseVal.getItem(3).value is 150 |
-PASS text1.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 text2.x.baseVal.numberOfItems is 5 |
-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 1000 |
-PASS text2.x.baseVal.getItem(3).value is 1000 |
-PASS text2.x.baseVal.getItem(4).value is 900 |
-PASS text2.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).. |
-PASS newLength2.value is 150 |
+Remove fourth item of text1 |
+PASS text.x.baseVal.removeItem(0).value is 500 |
-Shuffle around items in text1 and text2 list using appendItem, to get x=50,100,150,... in both lists |
-PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 500 |
-PASS text2.x.baseVal.appendItem(newLength2).value is 150 |
-PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(2)).value is 1000 |
-PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(3)).value is 900 |
-PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(2)).value is 1000 |
-PASS text1.x.baseVal.numberOfItems is 4 |
-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).value is 500 |
-PASS text1.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 text2.x.baseVal.numberOfItems is 6 |
-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).value is 1000 |
-PASS text2.x.baseVal.getItem(4).value is 900 |
-PASS text2.x.baseVal.getItem(5).value is 1000 |
-PASS text2.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal to the maximum bound (6).. |
+Remove third item of text1 |
+PASS text.x.baseVal.removeItem(2).value is 900 |
-The test passes if you only see 'PASS' messages, and all three text elements on top look the same |
+The test passes if you only see 'PASS' messages, and both text elements on top look the same |
PASS successfullyParsed is true |