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

Unified Diff: LayoutTests/svg/dom/SVGLengthList-insertItemBefore-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-insertItemBefore-expected.txt
diff --git a/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt b/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt
index c3a5a53b720c822c5cd18dbcb9f74b21d40703f2..50c4d8c2700a5344822762037e20068d50a86696 100644
--- a/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt
+++ b/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt
@@ -24,7 +24,7 @@ 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..
Insert item 'newLength1' at the end of the list, by using a large index
-PASS text1.x.baseVal.insertItemBefore(newLength1, 1000) is newLength1
+FAIL text1.x.baseVal.insertItemBefore(newLength1, 1000) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 500
PASS text1.x.baseVal.getItem(1).value is 1000
@@ -35,7 +35,7 @@ PASS text1.x.baseVal.getItem(4) threw exception IndexSizeError: Index or size wa
Storing getItem(0/1/2) in local variables
Insert item 'newLength2' at the front of the list, by using index=0
-PASS text1.x.baseVal.insertItemBefore(newLength2, 0) is newLength2
+FAIL text1.x.baseVal.insertItemBefore(newLength2, 0) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 5
PASS text1.x.baseVal.getItem(0).value is 100
PASS text1.x.baseVal.getItem(1).value is 500
@@ -51,7 +51,7 @@ PASS item2.value is 1500
PASS item3.value is 50
Insert item 'newLength3' at position=2, between '500' and '1000'
-PASS text1.x.baseVal.insertItemBefore(newLength3, 2) is newLength3
+FAIL text1.x.baseVal.insertItemBefore(newLength3, 2) should be [object SVGLength]. Was [object SVGLength].
PASS text1.x.baseVal.numberOfItems is 6
PASS text1.x.baseVal.getItem(0).value is 100
PASS text1.x.baseVal.getItem(1).value is 500
@@ -62,26 +62,26 @@ PASS text1.x.baseVal.getItem(5).value is 50
PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Insert item 'newLength3' at position=1, between '100' and '500', remove it from the old position=2 afterwards.
-PASS text1.x.baseVal.insertItemBefore(newLength3, 1) is newLength3
-PASS text1.x.baseVal.numberOfItems is 6
+FAIL text1.x.baseVal.insertItemBefore(newLength3, 1) should be [object SVGLength]. Was [object SVGLength].
+FAIL text1.x.baseVal.numberOfItems should be 6. Was 7.
PASS text1.x.baseVal.getItem(0).value is 100
PASS text1.x.baseVal.getItem(1).value is 150
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.x.baseVal.getItem(5).value is 50
-PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+FAIL text1.x.baseVal.getItem(3).value should be 1000. Was 150.
+FAIL text1.x.baseVal.getItem(4).value should be 1500. Was 1000.
+FAIL text1.x.baseVal.getItem(5).value should be 50. Was 1500.
+FAIL text1.x.baseVal.getItem(6) should throw an exception. Was [object SVGLength].
Insert item 'newLength3' at position=0, before '100', remove it from the old position=5 afterwards.
-PASS text1.x.baseVal.insertItemBefore(newLength1, 0) is newLength1
-PASS text1.x.baseVal.numberOfItems is 6
+FAIL text1.x.baseVal.insertItemBefore(newLength1, 0) should be [object SVGLength]. Was [object SVGLength].
+FAIL text1.x.baseVal.numberOfItems should be 6. Was 8.
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).value is 1000
-PASS text1.x.baseVal.getItem(5).value is 1500
-PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+FAIL text1.x.baseVal.getItem(4).value should be 1000. Was 150.
+FAIL text1.x.baseVal.getItem(5).value should be 1500. Was 1000.
+FAIL text1.x.baseVal.getItem(6) should throw an exception. Was [object SVGLength].
The test passes if you only see 'PASS' messages, and both text elements on top look the same

Powered by Google App Engine
This is Rietveld 408576698