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

Unified Diff: LayoutTests/svg/dom/SVGAngle-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/SVGAngle-expected.txt
diff --git a/LayoutTests/svg/dom/SVGAngle-expected.txt b/LayoutTests/svg/dom/SVGAngle-expected.txt
index 9d23b896cf81c64e3f344ef829154be326013306..28cd41b5b3f0ba2c861c36c8fd9caca2250d4a8f 100644
--- a/LayoutTests/svg/dom/SVGAngle-expected.txt
+++ b/LayoutTests/svg/dom/SVGAngle-expected.txt
@@ -11,12 +11,12 @@ PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
Check invalid arguments for 'convertToSpecifiedUnits'
-PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.convertToSpecifiedUnits(-1) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.convertToSpecifiedUnits(5) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.convertToSpecifiedUnits('aString') threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.convertToSpecifiedUnits(angle) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.convertToSpecifiedUnits(svgElement) threw exception Error: NotSupportedError: DOM Exception 9.
+PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.convertToSpecifiedUnits(-1) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.convertToSpecifiedUnits(5) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.convertToSpecifiedUnits('aString') threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.convertToSpecifiedUnits(angle) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.convertToSpecifiedUnits(svgElement) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
PASS angle.convertToSpecifiedUnits() threw exception TypeError: Not enough arguments.
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
@@ -43,9 +43,9 @@ PASS angle.valueInSpecifiedUnits is 0
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
Check invalid arguments for 'newValueSpecifiedUnits'
-PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN, 50) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(-1, 50) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(5, 50) threw exception Error: NotSupportedError: DOM Exception 9.
+PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN, 50) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(-1, 50) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(5, 50) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception TypeError: Not enough arguments.
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 'aString') is undefined.
PASS angle.value is NaN
@@ -55,12 +55,12 @@ PASS angle.value is NaN
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, svgElement) is undefined.
PASS angle.value is NaN
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG) threw exception TypeError: Not enough arguments.
-PASS angle.newValueSpecifiedUnits('aString', 4) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(angle, 4) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(angle, angle) threw exception Error: NotSupportedError: DOM Exception 9.
-PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception Error: NotSupportedError: DOM Exception 9.
+PASS angle.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(angle, 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits('aString', 'aString') threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(angle, angle) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS angle.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
PASS angle.newValueSpecifiedUnits() threw exception TypeError: Not enough arguments.
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG
@@ -91,27 +91,27 @@ PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNSPECIFIED, 0) is unde
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
Check setting invalid 'valueAsString' arguments
-PASS angle.valueAsString = '10px' threw exception Error: SyntaxError: DOM Exception 12.
+PASS angle.valueAsString = '10px' threw exception SyntaxError: An invalid or illegal string was specified..
PASS angle.valueAsString is "0"
PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
-PASS angle.valueAsString = '10x' threw exception Error: SyntaxError: DOM Exception 12.
+PASS angle.valueAsString = '10x' threw exception SyntaxError: An invalid or illegal string was specified..
PASS angle.valueAsString is "0"
PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
-PASS angle.valueAsString = '5graD' threw exception Error: SyntaxError: DOM Exception 12.
+PASS angle.valueAsString = '5graD' threw exception SyntaxError: An invalid or illegal string was specified..
PASS angle.valueAsString is "0"
PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
-PASS angle.valueAsString = '5Rad' threw exception Error: SyntaxError: DOM Exception 12.
+PASS angle.valueAsString = '5Rad' threw exception SyntaxError: An invalid or illegal string was specified..
PASS angle.valueAsString is "0"
PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
-PASS angle.valueAsString = ',5 rad' threw exception Error: SyntaxError: DOM Exception 12.
+PASS angle.valueAsString = ',5 rad' threw exception SyntaxError: An invalid or illegal string was specified..
PASS angle.valueAsString is "0"
PASS angle.value is 0
PASS angle.valueInSpecifiedUnits is 0
@@ -174,7 +174,7 @@ PASS angle.valueAsString is "3.14159rad"
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_RAD
Now try converting the RAD value into an unknown value, that should fail and throw
-PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw exception Error: NotSupportedError: DOM Exception 9.
+PASS angle.convertToSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_UNKNOWN) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
PASS angle.value.toFixed(1) is "180.0"
PASS angle.valueInSpecifiedUnits.toFixed(5) is "3.14159"
PASS angle.valueAsString is "3.14159rad"

Powered by Google App Engine
This is Rietveld 408576698