Index: LayoutTests/svg/dom/SVGLengthList-basics-expected.txt |
diff --git a/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt b/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt |
index 4f1516ff520cc2fd67885696cda55a9ba2de10bb..3cb087f0a03c273efd73159703355214a657843f 100644 |
--- a/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt |
+++ b/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt |
@@ -29,29 +29,39 @@ PASS text1.x.baseVal.insertItemBefore('aString') threw exception TypeError: Fail |
PASS text1.x.baseVal.insertItemBefore(text1) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present.. |
PASS text1.x.baseVal.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present.. |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 'aString') is text1.x.baseVal.getItem(0) |
-PASS text1.x.baseVal.numberOfItems is 3 |
+PASS text1.x.baseVal.numberOfItems is 4 |
PASS text1.x.baseVal.getItem(0).value is 1000 |
PASS text1.x.baseVal.getItem(1).value is 500 |
-PASS text1.x.baseVal.getItem(2).value is 1500 |
-PASS text1.getAttribute('x') is "1000 500 1500" |
+PASS text1.x.baseVal.getItem(2).value is 1000 |
+PASS text1.x.baseVal.getItem(3).value is 1500 |
+PASS text1.getAttribute('x') is "1000 500 1000 1500" |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text1.x.baseVal.getItem(0) |
-PASS text1.x.baseVal.numberOfItems is 3 |
+PASS text1.x.baseVal.numberOfItems is 5 |
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.getAttribute('x') is "500 1000 1500" |
+PASS text1.x.baseVal.getItem(2).value is 500 |
+PASS text1.x.baseVal.getItem(3).value is 1000 |
+PASS text1.x.baseVal.getItem(4).value is 1500 |
+PASS text1.getAttribute('x') is "500 1000 500 1000 1500" |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), null) is text1.x.baseVal.getItem(0) |
-PASS text1.x.baseVal.numberOfItems is 3 |
+PASS text1.x.baseVal.numberOfItems is 6 |
PASS text1.x.baseVal.getItem(0).value is 1000 |
PASS text1.x.baseVal.getItem(1).value is 500 |
-PASS text1.x.baseVal.getItem(2).value is 1500 |
-PASS text1.getAttribute('x') is "1000 500 1500" |
+PASS text1.x.baseVal.getItem(2).value is 1000 |
+PASS text1.x.baseVal.getItem(3).value is 500 |
+PASS text1.x.baseVal.getItem(4).value is 1000 |
+PASS text1.x.baseVal.getItem(5).value is 1500 |
+PASS text1.getAttribute('x') is "1000 500 1000 500 1000 1500" |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.baseVal.getItem(0) |
-PASS text1.x.baseVal.numberOfItems is 3 |
+PASS text1.x.baseVal.numberOfItems is 7 |
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.getAttribute('x') is "500 1000 1500" |
+PASS text1.x.baseVal.getItem(2).value is 500 |
+PASS text1.x.baseVal.getItem(3).value is 1000 |
+PASS text1.x.baseVal.getItem(4).value is 500 |
+PASS text1.x.baseVal.getItem(5).value is 1000 |
+PASS text1.x.baseVal.getItem(6).value is 1500 |
+PASS text1.getAttribute('x') is "500 1000 500 1000 500 1000 1500" |
PASS text1.x.baseVal.insertItemBefore(30, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. |
PASS text1.x.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. |
PASS text1.x.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'.. |
@@ -62,11 +72,11 @@ PASS text1.setAttribute('x', '1 2 3 4') is undefined. |
Test edge cases for insertItemBefore() |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) is text1.x.baseVal.getItem(3) |
-PASS text1.getAttribute('x') is "1 2 3 4" |
-PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x.baseVal.getItem(3) |
-PASS text1.getAttribute('x') is "1 3 4 2" |
+PASS text1.getAttribute('x') is "1 2 3 4 4" |
+PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) is text1.x.baseVal.getItem(5) |
+PASS text1.getAttribute('x') is "1 2 3 4 4 2" |
PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.baseVal.getItem(0) |
-PASS text1.getAttribute('x') is "3 1 4 2" |
+PASS text1.getAttribute('x') is "2 1 2 3 4 4 2" |
Set x='1 2 3 4' for text1 |
PASS text1.setAttribute('x', '1 2 3 4') is undefined. |
@@ -117,10 +127,10 @@ Test edge cases for replaceItem() |
PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseVal.getItem(3) |
PASS text1.x.baseVal.numberOfItems is 4 |
PASS text1.getAttribute('x') is "1 2 3 4" |
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseVal.getItem(2) |
-PASS text1.x.baseVal.numberOfItems is 3 |
-PASS text1.getAttribute('x') is "1 3 2" |
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3).. |
+PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) is text1.x.baseVal.getItem(3) |
+PASS text1.x.baseVal.numberOfItems is 4 |
+PASS text1.getAttribute('x') is "1 2 3 2" |
+PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 4) threw exception IndexSizeError: Failed to execute 'replaceItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4).. |
Set x='1 2 3 4' for text1 |
PASS text1.setAttribute('x', '1 2 3 4') is undefined. |