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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months 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-initialize-expected.txt
diff --git a/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt b/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt
index 27ed343e8ff597ce3e6ce800c7bfa1fa5299eca0..4ed36d103b83b7e566492faf2e6d7ca9b0e20fe4 100644
--- a/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt
+++ b/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt
@@ -13,25 +13,25 @@ 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.x.baseVal.getItem(3) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Check initial list state of text2
PASS text2.x.baseVal.numberOfItems is 2
PASS text2.x.baseVal.getItem(0).value is 50
PASS text2.x.baseVal.getItem(1).value is 500
-PASS text2.x.baseVal.getItem(2) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text2.x.baseVal.getItem(2) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Check initial 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 500
PASS text3.x.baseVal.getItem(2).value is 50
-PASS text3.x.baseVal.getItem(3) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text3.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Check initial list state of text4
PASS text4.x.baseVal.numberOfItems is 1
PASS text4.x.baseVal.getItem(0).value is 500
-PASS text4.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Create a new SVGLength object, that will be the only x coordinate in the first text element.
PASS newLength.value is 50
@@ -48,7 +48,7 @@ Override the third text elements x list with the item x=50 from the second text
PASS text3.x.baseVal.initialize(itemInAnotherList) is itemInAnotherList
PASS text3.x.baseVal.getItem(0).value is 50
PASS text2.x.baseVal.getItem(0).value is 50
-PASS text2.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Assure that the 'itemInAnotherList' item is still live anymore, set value to 999 then back to 50
PASS itemInAnotherList.value = 999; is 999
@@ -61,7 +61,7 @@ PASS text3.x.baseVal.getItem(0).value is 50
Move item from text3 to text4
PASS text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) is itemInAnotherList
PASS text4.x.baseVal.getItem(0).value is 50
-PASS text3.x.baseVal.getItem(0) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text3.x.baseVal.getItem(0) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
Initialize text3 using setAttribute('x', '50')
PASS text3.x.baseVal.getItem(0).value is 50
@@ -75,10 +75,10 @@ PASS text1.x.baseVal.numberOfItems is 1
PASS text2.x.baseVal.numberOfItems is 1
PASS text3.x.baseVal.numberOfItems is 1
PASS text4.x.baseVal.numberOfItems is 1
-PASS text1.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS text2.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS text3.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS text4.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Exception 1.
+PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
+PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
The test passes if you only see 'PASS' messages, and all five text elements on top look the same

Powered by Google App Engine
This is Rietveld 408576698