Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: LayoutTests/svg/dom/SVGLengthList-basics-expected.txt

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f33202d6d52abe17998aa9bacd7d777b994dd853..7351284f9ee57e9a9e7ef4d9b6caf6365f16930a 100644
--- a/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt
+++ b/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt
@@ -15,38 +15,38 @@ Test uncommon arguments for initialize()
PASS text1.x.baseVal.initialize(30) threw exception TypeError: Failed to execute 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.initialize('aString') threw exception TypeError: Failed to execute 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.initialize(text1) threw exception TypeError: Failed to execute 'initialize' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
-PASS text1.x.baseVal.initialize(null) threw exception TypeError: Type error.
+PASS text1.x.baseVal.initialize(null) threw exception TypeError: Failed to execute 'initialize' on 'SVGLengthList': Lists must be initialized with a valid item..
Test uncommon arguments for getItem()
PASS text1.x.baseVal.getItem(30) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
-PASS text1.x.baseVal.getItem('aString') is text1.x.baseVal.getItem(0)
-PASS text1.x.baseVal.getItem(text1) is text1.x.baseVal.getItem(0)
-PASS text1.x.baseVal.getItem(null) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.getItem('aString') should be [object SVGLength]. Was [object SVGLength].
+FAIL text1.x.baseVal.getItem(text1) should be [object SVGLength]. Was [object SVGLength].
+FAIL text1.x.baseVal.getItem(null) should be [object SVGLength]. Was [object SVGLength].
Test uncommon arguments for insertItemBefore()
PASS text1.x.baseVal.insertItemBefore(30) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present..
PASS text1.x.baseVal.insertItemBefore('aString') threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only 1 present..
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)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 'aString') should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 3
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.insertItemBefore(text1.x.baseVal.getItem(1), text1) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), text1) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 3
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.insertItemBefore(text1.x.baseVal.getItem(1), null) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), null) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 3
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.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 3
PASS text1.x.baseVal.getItem(0).value is 500
PASS text1.x.baseVal.getItem(1).value is 1000
@@ -55,17 +55,17 @@ PASS text1.getAttribute('x') is "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'..
-PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception TypeError: Type error.
+PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGLengthList': Failed to execute 'insertItemBefore' on 'SVGLengthList': An invalid item cannot be inserted to a list..
Set x='1 2 3 4' for text1
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)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(3), 3) should be [object SVGLength]. Was [object SVGLength].
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)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 5) should be [object SVGLength]. Was [object SVGLength].
PASS text1.getAttribute('x') is "1 3 4 2"
-PASS text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.insertItemBefore(text1.x.baseVal.getItem(1), 0) should be [object SVGLength]. Was [object SVGLength].
PASS text1.getAttribute('x') is "3 1 4 2"
Set x='1 2 3 4' for text1
@@ -85,22 +85,22 @@ PASS text1.x.baseVal.replaceItem(null) threw exception TypeError: Failed to exec
PASS text1.x.baseVal.replaceItem(30, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.replaceItem('aString', 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.replaceItem(text1, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
-PASS text1.x.baseVal.replaceItem(null, 0) threw exception TypeError: Type error.
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) is text1.x.baseVal.getItem(0)
+PASS text1.x.baseVal.replaceItem(null, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGLengthList': Failed to execute 'replaceItem' on 'SVGLengthList': An invalid item cannot be replaced with an existing list item..
+FAIL text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
PASS text1.x.baseVal.getItem(1).value is 2
PASS text1.x.baseVal.getItem(2).value is 3
PASS text1.x.baseVal.getItem(3).value is 4
PASS text1.getAttribute('x') is "1 2 3 4"
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 'aString') is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 'aString') should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
PASS text1.x.baseVal.getItem(1).value is 2
PASS text1.x.baseVal.getItem(2).value is 3
PASS text1.x.baseVal.getItem(3).value is 4
PASS text1.getAttribute('x') is "1 2 3 4"
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), text1) is text1.x.baseVal.getItem(0)
+FAIL text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), text1) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.getAttribute('x') is "1 2 3 4"
@@ -108,10 +108,10 @@ Set x='1 2 3 4' for text1
PASS text1.setAttribute('x', '1 2 3 4') is undefined.
Test edge cases for replaceItem()
-PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) is text1.x.baseVal.getItem(3)
+FAIL text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(3), 3) should be [object SVGLength]. Was [object SVGLength].
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)
+FAIL text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(1), 3) should be [object SVGLength]. Was [object SVGLength].
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: Index or size was negative, or greater than the allowed value..
@@ -137,10 +137,10 @@ Test uncommon arguments for appendItem()
PASS text1.x.baseVal.appendItem(30) threw exception TypeError: Failed to execute 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.appendItem('aString') threw exception TypeError: Failed to execute 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
PASS text1.x.baseVal.appendItem(text1) threw exception TypeError: Failed to execute 'appendItem' on 'SVGLengthList': parameter 1 is not of type 'SVGLength'..
-PASS text1.x.baseVal.appendItem(null) threw exception TypeError: Type error.
+PASS text1.x.baseVal.appendItem(null) threw exception TypeError: Failed to execute 'appendItem' on 'SVGLengthList': Failed to execute 'appendItem' on 'SVGLengthList': An invalid item cannot be appended to a list..
Testing animVal clear throws
-PASS text1.x.animVal.clear() threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
+PASS text1.x.animVal.clear() threw exception NoModificationAllowedError: Failed to execute 'clear' on 'SVGLengthList': Failed to execute 'clear' on 'SVGLengthList': The object is read-only..
PASS text1.x.baseVal.clear() is undefined.
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698