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

Unified Diff: LayoutTests/svg/dom/SVGAngle-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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 28cd41b5b3f0ba2c861c36c8fd9caca2250d4a8f..baf3f6a0f46dff26a9a05816dfd32392551b7b27 100644
--- a/LayoutTests/svg/dom/SVGAngle-expected.txt
+++ b/LayoutTests/svg/dom/SVGAngle-expected.txt
@@ -17,7 +17,7 @@ PASS angle.convertToSpecifiedUnits(5) threw exception NotSupportedError: The imp
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.convertToSpecifiedUnits() threw exception TypeError: Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': 1 argument required, but only 0 present..
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_UNSPECIFIED
Check valid arguments for 'convertToSpecifiedUnits', that should only modify the 'valueAsString'
@@ -46,7 +46,7 @@ Check invalid arguments for 'newValueSpecifiedUnits'
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) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments required, but only 1 present..
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 'aString') is undefined.
PASS angle.value is NaN
PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, 0) is undefined.
@@ -54,14 +54,14 @@ PASS angle.newValueSpecifiedUnits(SVGAngle.SVG_ANGLETYPE_DEG, angle) is undefine
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(SVGAngle.SVG_ANGLETYPE_DEG) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments required, but only 1 present..
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.newValueSpecifiedUnits() threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': 2 arguments required, but only 0 present..
PASS angle.unitType is SVGAngle.SVG_ANGLETYPE_DEG
Check valid arguments for 'newValueSpecifiedUnits', that should only modify the 'valueAsString'
« no previous file with comments | « LayoutTests/storage/storageinfo-missing-arguments-expected.txt ('k') | LayoutTests/svg/dom/SVGColor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698