Diff
Modified: trunk/LayoutTests/ChangeLog (203327 => 203328)
--- trunk/LayoutTests/ChangeLog 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/ChangeLog 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,3 +1,41 @@
+2016-07-16 Brady Eidson <[email protected]>
+
+ Update SVGException to use the description in toString().
+ https://bugs.webkit.org/show_bug.cgi?id=159847
+
+ Reviewed by Darin Adler.
+
+ * svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt:
+ * svg/custom/SVGException-expected.txt:
+ * svg/custom/polyline-points-crash-expected.txt:
+ * svg/custom/script-tests/SVGException.js:
+ * svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt:
+ * svg/dom/SVGAnimatedEnumeration-expected.txt:
+ * svg/dom/SVGLengthList-basics-expected.txt:
+ * svg/dom/SVGMatrix-interface-expected.txt:
+ * svg/dom/SVGNumberList-basics-expected.txt:
+ * svg/dom/SVGPointList-basics-expected.txt:
+ * svg/dom/SVGTransformList-basics-expected.txt:
+ * svg/dom/svglist-exception-on-out-bounds-error-expected.txt:
+ * svg/filters/feBlend-invalid-mode-expected.txt:
+ * svg/filters/feComponentTransfer-style-crash-expected.txt:
+ * svg/filters/feDisplacementMap-crash-test-expected.txt:
+
2016-07-15 Benjamin Poulain <[email protected]>
[mac] LayoutTest fast/css/ancestor-of-hovered-element-detached.html is flaky
Modified: trunk/LayoutTests/svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -6,7 +6,7 @@
PASS SVGMarkerElement.SVG_MARKER_ORIENT_AUTOSTARTREVERSE is undefined
-PASS marker.orientType.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS marker.orientType.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS marker.orientAngle.animVal.value is 0
PASS marker.orientAngle.baseVal.value is 0
PASS marker.orientType.animVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
Modified: trunk/LayoutTests/svg/custom/SVGException-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/custom/SVGException-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/custom/SVGException-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -3,7 +3,7 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS e.toString() is "Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1"
+PASS e.toString() is "SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute."
PASS Object.prototype.toString.call(e) is "[object SVGException]"
PASS Object.prototype.toString.call(e.__proto__) is "[object SVGExceptionPrototype]"
PASS e.constructor.toString() is "function SVGException() {\n [native code]\n}"
Modified: trunk/LayoutTests/svg/custom/polyline-points-crash-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/custom/polyline-points-crash-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/custom/polyline-points-crash-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,2 +1,2 @@
-Caught exception: Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0
+Caught exception: SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation.
PASSED -- WebKit did not crash!
Modified: trunk/LayoutTests/svg/custom/script-tests/SVGException.js (203327 => 203328)
--- trunk/LayoutTests/svg/custom/script-tests/SVGException.js 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/custom/script-tests/SVGException.js 2016-07-16 21:33:01 UTC (rev 203328)
@@ -10,7 +10,7 @@
e = err;
}
-shouldBeEqualToString("e.toString()", "Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1");
+shouldBeEqualToString("e.toString()", "SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute.");
shouldBeEqualToString("Object.prototype.toString.call(e)", "[object SVGException]");
shouldBeEqualToString("Object.prototype.toString.call(e.__proto__)", "[object SVGExceptionPrototype]");
shouldBeEqualToString("e.constructor.toString()", "function SVGException() {\n [native code]\n}");
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox"
Try setting invalid values
-PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox"
-PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox"
-PASS clipPathElement.clipPathUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -30,13 +30,13 @@
PASS feFuncRElement.getAttribute('type') is "gamma"
Try setting invalid values
-PASS feFuncRElement.type.baseVal = 6 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feFuncRElement.type.baseVal = 6 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA
PASS feFuncRElement.getAttribute('type') is "gamma"
-PASS feFuncRElement.type.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feFuncRElement.type.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA
PASS feFuncRElement.getAttribute('type') is "gamma"
-PASS feFuncRElement.type.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feFuncRElement.type.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA
PASS feFuncRElement.getAttribute('type') is "gamma"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -30,13 +30,13 @@
PASS feBlendElement.getAttribute('mode') is "lighten"
Try setting invalid values
-PASS feBlendElement.mode.baseVal = 6 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feBlendElement.mode.baseVal = 6 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feBlendElement.mode.baseVal is SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN
PASS feBlendElement.getAttribute('mode') is "lighten"
-PASS feBlendElement.mode.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feBlendElement.mode.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feBlendElement.mode.baseVal is SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN
PASS feBlendElement.getAttribute('mode') is "lighten"
-PASS feBlendElement.mode.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feBlendElement.mode.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feBlendElement.mode.baseVal is SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN
PASS feBlendElement.getAttribute('mode') is "lighten"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -25,13 +25,13 @@
PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
Try setting invalid values
-PASS feColorMatrixElement.type.baseVal = 5 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feColorMatrixElement.type.baseVal = 5 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA
PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
-PASS feColorMatrixElement.type.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feColorMatrixElement.type.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA
PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
-PASS feColorMatrixElement.type.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feColorMatrixElement.type.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA
PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -40,13 +40,13 @@
PASS feCompositeElement.getAttribute('operator') is "arithmetic"
Try setting invalid values
-PASS feCompositeElement.operator.baseVal = 7 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feCompositeElement.operator.baseVal = 7 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC
PASS feCompositeElement.getAttribute('operator') is "arithmetic"
-PASS feCompositeElement.operator.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feCompositeElement.operator.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC
PASS feCompositeElement.getAttribute('operator') is "arithmetic"
-PASS feCompositeElement.operator.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feCompositeElement.operator.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC
PASS feCompositeElement.getAttribute('operator') is "arithmetic"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -20,13 +20,13 @@
PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none"
Try setting invalid values
-PASS feConvolveMatrixElement.edgeMode.baseVal = 4 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feConvolveMatrixElement.edgeMode.baseVal = 4 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE
PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none"
-PASS feConvolveMatrixElement.edgeMode.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feConvolveMatrixElement.edgeMode.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE
PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none"
-PASS feConvolveMatrixElement.edgeMode.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feConvolveMatrixElement.edgeMode.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE
PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -25,13 +25,13 @@
PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A"
Try setting invalid values
-PASS feDisplacementMapElement.xChannelSelector.baseVal = 5 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.xChannelSelector.baseVal = 5 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A"
-PASS feDisplacementMapElement.xChannelSelector.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.xChannelSelector.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A"
-PASS feDisplacementMapElement.xChannelSelector.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.xChannelSelector.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A"
@@ -61,13 +61,13 @@
PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A"
Try setting invalid values
-PASS feDisplacementMapElement.yChannelSelector.baseVal = 5 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.yChannelSelector.baseVal = 5 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A"
-PASS feDisplacementMapElement.yChannelSelector.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.yChannelSelector.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A"
-PASS feDisplacementMapElement.yChannelSelector.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feDisplacementMapElement.yChannelSelector.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapElement.SVG_CHANNEL_A
PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS feMorphologyElement.getAttribute('operator') is "dilate"
Try setting invalid values
-PASS feMorphologyElement.operator.baseVal = 4 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feMorphologyElement.operator.baseVal = 4 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE
PASS feMorphologyElement.getAttribute('operator') is "dilate"
-PASS feMorphologyElement.operator.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feMorphologyElement.operator.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE
PASS feMorphologyElement.getAttribute('operator') is "dilate"
-PASS feMorphologyElement.operator.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feMorphologyElement.operator.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE
PASS feMorphologyElement.getAttribute('operator') is "dilate"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS feTurbulenceElement.getAttribute('type') is "turbulence"
Try setting invalid values
-PASS feTurbulenceElement.type.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.type.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE
PASS feTurbulenceElement.getAttribute('type') is "turbulence"
-PASS feTurbulenceElement.type.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.type.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE
PASS feTurbulenceElement.getAttribute('type') is "turbulence"
-PASS feTurbulenceElement.type.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.type.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE
PASS feTurbulenceElement.getAttribute('type') is "turbulence"
@@ -41,13 +41,13 @@
PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
Try setting invalid values
-PASS feTurbulenceElement.stitchTiles.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.stitchTiles.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH
PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
-PASS feTurbulenceElement.stitchTiles.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.stitchTiles.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH
PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
-PASS feTurbulenceElement.stitchTiles.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS feTurbulenceElement.stitchTiles.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH
PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
Try setting invalid values
-PASS filterElement.filterUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.filterUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
-PASS filterElement.filterUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.filterUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
-PASS filterElement.filterUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.filterUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
@@ -41,13 +41,13 @@
PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
Try setting invalid values
-PASS filterElement.primitiveUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.primitiveUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
-PASS filterElement.primitiveUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.primitiveUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
-PASS filterElement.primitiveUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS filterElement.primitiveUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS gradientElement.getAttribute('gradientUnits') is "objectBoundingBox"
Try setting invalid values
-PASS gradientElement.gradientUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.gradientUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.gradientUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS gradientElement.getAttribute('gradientUnits') is "objectBoundingBox"
-PASS gradientElement.gradientUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.gradientUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.gradientUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS gradientElement.getAttribute('gradientUnits') is "objectBoundingBox"
-PASS gradientElement.gradientUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.gradientUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.gradientUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS gradientElement.getAttribute('gradientUnits') is "objectBoundingBox"
@@ -46,13 +46,13 @@
PASS gradientElement.getAttribute('spreadMethod') is "repeat"
Try setting invalid values
-PASS gradientElement.spreadMethod.baseVal = 4 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.spreadMethod.baseVal = 4 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.spreadMethod.baseVal is SVGGradientElement.SVG_SPREADMETHOD_REPEAT
PASS gradientElement.getAttribute('spreadMethod') is "repeat"
-PASS gradientElement.spreadMethod.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.spreadMethod.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.spreadMethod.baseVal is SVGGradientElement.SVG_SPREADMETHOD_REPEAT
PASS gradientElement.getAttribute('spreadMethod') is "repeat"
-PASS gradientElement.spreadMethod.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS gradientElement.spreadMethod.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS gradientElement.spreadMethod.baseVal is SVGGradientElement.SVG_SPREADMETHOD_REPEAT
PASS gradientElement.getAttribute('spreadMethod') is "repeat"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS markerElement.getAttribute('markerUnits') is "strokeWidth"
Try setting invalid values
-PASS markerElement.markerUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.markerUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH
PASS markerElement.getAttribute('markerUnits') is "strokeWidth"
-PASS markerElement.markerUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.markerUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH
PASS markerElement.getAttribute('markerUnits') is "strokeWidth"
-PASS markerElement.markerUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.markerUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH
PASS markerElement.getAttribute('markerUnits') is "strokeWidth"
@@ -89,13 +89,13 @@
PASS markerElement.getAttribute('orient') is "10deg"
Try setting invalid values
-PASS markerElement.orientType.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.orientType.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
PASS markerElement.getAttribute('orient') is "10deg"
-PASS markerElement.orientType.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.orientType.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
PASS markerElement.getAttribute('orient') is "10deg"
-PASS markerElement.orientType.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS markerElement.orientType.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
PASS markerElement.getAttribute('orient') is "10deg"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS patternElement.getAttribute('patternUnits') is "objectBoundingBox"
Try setting invalid values
-PASS patternElement.patternUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternUnits') is "objectBoundingBox"
-PASS patternElement.patternUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternUnits') is "objectBoundingBox"
-PASS patternElement.patternUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternUnits') is "objectBoundingBox"
@@ -41,13 +41,13 @@
PASS patternElement.getAttribute('patternContentUnits') is "objectBoundingBox"
Try setting invalid values
-PASS patternElement.patternContentUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternContentUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternContentUnits') is "objectBoundingBox"
-PASS patternElement.patternContentUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternContentUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternContentUnits') is "objectBoundingBox"
-PASS patternElement.patternContentUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS patternElement.patternContentUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS patternElement.patternContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS patternElement.getAttribute('patternContentUnits') is "objectBoundingBox"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
Try setting invalid values
-PASS maskElement.maskUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
-PASS maskElement.maskUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
-PASS maskElement.maskUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
@@ -41,13 +41,13 @@
PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
Try setting invalid values
-PASS maskElement.maskContentUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskContentUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
-PASS maskElement.maskContentUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskContentUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
-PASS maskElement.maskContentUnits.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS maskElement.maskContentUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs"
Try setting invalid values
-PASS textContentElement.lengthAdjust.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textContentElement.lengthAdjust.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS
PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs"
-PASS textContentElement.lengthAdjust.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textContentElement.lengthAdjust.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS
PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs"
-PASS textContentElement.lengthAdjust.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textContentElement.lengthAdjust.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textContentElement.lengthAdjust.baseVal is SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS
PASS textContentElement.getAttribute('lengthAdjust') is "spacingAndGlyphs"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,13 +15,13 @@
PASS textPathElement.getAttribute('method') is "stretch"
Try setting invalid values
-PASS textPathElement.method.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.method.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH
PASS textPathElement.getAttribute('method') is "stretch"
-PASS textPathElement.method.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.method.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH
PASS textPathElement.getAttribute('method') is "stretch"
-PASS textPathElement.method.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.method.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH
PASS textPathElement.getAttribute('method') is "stretch"
@@ -41,13 +41,13 @@
PASS textPathElement.getAttribute('spacing') is "exact"
Try setting invalid values
-PASS textPathElement.spacing.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.spacing.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT
PASS textPathElement.getAttribute('spacing') is "exact"
-PASS textPathElement.spacing.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.spacing.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT
PASS textPathElement.getAttribute('spacing') is "exact"
-PASS textPathElement.spacing.baseVal = 0 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS textPathElement.spacing.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT
PASS textPathElement.getAttribute('spacing') is "exact"
Modified: trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -14,16 +14,16 @@
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
Check assigning various valid and invalid values
-PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
-PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
PASS clipPathElement.clipPathUnits.baseVal = '1' is "1"
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
-PASS clipPathElement.clipPathUnits.baseVal = 'aString' threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = 'aString' threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
PASS clipPathElement.clipPathUnits.baseVal = 2 is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
-PASS clipPathElement.clipPathUnits.baseVal = clipPathElement threw exception Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1.
+PASS clipPathElement.clipPathUnits.baseVal = clipPathElement threw exception SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute..
PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
PASS successfullyParsed is true
Modified: trunk/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -15,7 +15,7 @@
PASS text1.x.baseVal.initialize(30) threw exception TypeError: Argument 1 ('item') to SVGLengthList.initialize must be an instance of SVGLength.
PASS text1.x.baseVal.initialize('aString') threw exception TypeError: Argument 1 ('item') to SVGLengthList.initialize must be an instance of SVGLength.
PASS text1.x.baseVal.initialize(text1) threw exception TypeError: Argument 1 ('item') to SVGLengthList.initialize must be an instance of SVGLength.
-PASS text1.x.baseVal.initialize(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.x.baseVal.initialize(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Test uncommon arguments for getItem()
PASS text1.x.baseVal.getItem(30) threw exception Error: IndexSizeError: DOM Exception 1.
@@ -55,7 +55,7 @@
PASS text1.x.baseVal.insertItemBefore(30, 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.insertItemBefore must be an instance of SVGLength.
PASS text1.x.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.insertItemBefore must be an instance of SVGLength.
PASS text1.x.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.insertItemBefore must be an instance of SVGLength.
-PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.x.baseVal.insertItemBefore(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Set x='1 2 3 4' for text1
PASS text1.setAttribute('x', '1 2 3 4') is undefined.
@@ -85,7 +85,7 @@
PASS text1.x.baseVal.replaceItem(30, 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.replaceItem must be an instance of SVGLength.
PASS text1.x.baseVal.replaceItem('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.replaceItem must be an instance of SVGLength.
PASS text1.x.baseVal.replaceItem(text1, 0) threw exception TypeError: Argument 1 ('item') to SVGLengthList.replaceItem must be an instance of SVGLength.
-PASS text1.x.baseVal.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.x.baseVal.replaceItem(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0) is text1.x.baseVal.getItem(0)
PASS text1.x.baseVal.numberOfItems is 4
PASS text1.x.baseVal.getItem(0).value is 1
@@ -153,7 +153,7 @@
PASS text1.x.baseVal.appendItem(30) threw exception TypeError: Argument 1 ('item') to SVGLengthList.appendItem must be an instance of SVGLength.
PASS text1.x.baseVal.appendItem('aString') threw exception TypeError: Argument 1 ('item') to SVGLengthList.appendItem must be an instance of SVGLength.
PASS text1.x.baseVal.appendItem(text1) threw exception TypeError: Argument 1 ('item') to SVGLengthList.appendItem must be an instance of SVGLength.
-PASS text1.x.baseVal.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.x.baseVal.appendItem(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Testing animVal clear throws
PASS text1.x.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
Modified: trunk/LayoutTests/svg/dom/SVGMatrix-interface-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGMatrix-interface-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGMatrix-interface-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -192,7 +192,7 @@
PASS parseFloat(m.f) is 20
Test throwing exception from inverse
-PASS m.inverse() threw exception Error: SVG_MATRIX_NOT_INVERTABLE: DOM SVG Exception 2.
+PASS m.inverse() threw exception SVG_MATRIX_NOT_INVERTABLE (DOM SVG Exception 2): An attempt was made to invert a matrix that is not invertible..
PASS successfullyParsed is true
Modified: trunk/LayoutTests/svg/dom/SVGNumberList-basics-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGNumberList-basics-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGNumberList-basics-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -12,7 +12,7 @@
PASS text1.rotate.baseVal.initialize(30) threw exception TypeError: Argument 1 ('item') to SVGNumberList.initialize must be an instance of SVGNumber.
PASS text1.rotate.baseVal.initialize('aString') threw exception TypeError: Argument 1 ('item') to SVGNumberList.initialize must be an instance of SVGNumber.
PASS text1.rotate.baseVal.initialize(text1) threw exception TypeError: Argument 1 ('item') to SVGNumberList.initialize must be an instance of SVGNumber.
-PASS text1.rotate.baseVal.initialize(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.rotate.baseVal.initialize(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Test uncommon arguments for getItem()
PASS text1.rotate.baseVal.getItem(30) threw exception Error: IndexSizeError: DOM Exception 1.
@@ -52,7 +52,7 @@
PASS text1.rotate.baseVal.insertItemBefore(30, 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.insertItemBefore must be an instance of SVGNumber.
PASS text1.rotate.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.insertItemBefore must be an instance of SVGNumber.
PASS text1.rotate.baseVal.insertItemBefore(text1, 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.insertItemBefore must be an instance of SVGNumber.
-PASS text1.rotate.baseVal.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.rotate.baseVal.insertItemBefore(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Set rotate='1 2 3 4' for text1
PASS text1.setAttribute('rotate', '1 2 3 4') is undefined.
@@ -71,7 +71,7 @@
PASS text1.rotate.baseVal.replaceItem(30, 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.replaceItem must be an instance of SVGNumber.
PASS text1.rotate.baseVal.replaceItem('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.replaceItem must be an instance of SVGNumber.
PASS text1.rotate.baseVal.replaceItem(text1, 0) threw exception TypeError: Argument 1 ('item') to SVGNumberList.replaceItem must be an instance of SVGNumber.
-PASS text1.rotate.baseVal.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.rotate.baseVal.replaceItem(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS text1.rotate.baseVal.replaceItem(text1.rotate.baseVal.getItem(0), 0) is text1.rotate.baseVal.getItem(0)
PASS text1.rotate.baseVal.numberOfItems is 4
PASS text1.rotate.baseVal.getItem(0).value is 1
@@ -118,7 +118,7 @@
PASS text1.rotate.baseVal.appendItem(30) threw exception TypeError: Argument 1 ('item') to SVGNumberList.appendItem must be an instance of SVGNumber.
PASS text1.rotate.baseVal.appendItem('aString') threw exception TypeError: Argument 1 ('item') to SVGNumberList.appendItem must be an instance of SVGNumber.
PASS text1.rotate.baseVal.appendItem(text1) threw exception TypeError: Argument 1 ('item') to SVGNumberList.appendItem must be an instance of SVGNumber.
-PASS text1.rotate.baseVal.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS text1.rotate.baseVal.appendItem(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Testing animVal clear throws
PASS text1.rotate.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
Modified: trunk/LayoutTests/svg/dom/SVGPointList-basics-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGPointList-basics-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGPointList-basics-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -74,13 +74,13 @@
PASS poly1.points.insertItemBefore(30, 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.insertItemBefore must be an instance of SVGPoint.
PASS poly1.points.insertItemBefore('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.insertItemBefore must be an instance of SVGPoint.
PASS poly1.points.insertItemBefore(poly1, 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.insertItemBefore must be an instance of SVGPoint.
-PASS poly1.points.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS poly1.points.insertItemBefore(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Test uncommon arguments for replaceItem()
PASS poly1.points.replaceItem(30) threw exception TypeError: Not enough arguments.
PASS poly1.points.replaceItem('aString') threw exception TypeError: Not enough arguments.
PASS poly1.points.replaceItem(poly1) threw exception TypeError: Not enough arguments.
-PASS poly1.points.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS poly1.points.replaceItem(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.replaceItem must be an instance of SVGPoint.
PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.replaceItem must be an instance of SVGPoint.
PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Argument 1 ('item') to SVGPointList.replaceItem must be an instance of SVGPoint.
@@ -142,7 +142,7 @@
PASS poly1.points.appendItem(30) threw exception TypeError: Argument 1 ('item') to SVGPointList.appendItem must be an instance of SVGPoint.
PASS poly1.points.appendItem('aString') threw exception TypeError: Argument 1 ('item') to SVGPointList.appendItem must be an instance of SVGPoint.
PASS poly1.points.appendItem(poly1) threw exception TypeError: Argument 1 ('item') to SVGPointList.appendItem must be an instance of SVGPoint.
-PASS poly1.points.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS poly1.points.appendItem(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100"
PASS poly1.points.numberOfItems is 2
PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100"
Modified: trunk/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -13,7 +13,7 @@
PASS circle1.transform.baseVal.initialize(30) threw exception TypeError: Argument 1 ('item') to SVGTransformList.initialize must be an instance of SVGTransform.
PASS circle1.transform.baseVal.initialize('aString') threw exception TypeError: Argument 1 ('item') to SVGTransformList.initialize must be an instance of SVGTransform.
PASS circle1.transform.baseVal.initialize(circle1) threw exception TypeError: Argument 1 ('item') to SVGTransformList.initialize must be an instance of SVGTransform.
-PASS circle1.transform.baseVal.initialize(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS circle1.transform.baseVal.initialize(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Test uncommon arguments for getItem()
PASS circle1.transform.baseVal.getItem(30) threw exception Error: IndexSizeError: DOM Exception 1.
@@ -49,7 +49,7 @@
PASS circle1.transform.baseVal.insertItemBefore(30, 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.insertItemBefore must be an instance of SVGTransform.
PASS circle1.transform.baseVal.insertItemBefore('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.insertItemBefore must be an instance of SVGTransform.
PASS circle1.transform.baseVal.insertItemBefore(circle1, 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.insertItemBefore must be an instance of SVGTransform.
-PASS circle1.transform.baseVal.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS circle1.transform.baseVal.insertItemBefore(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Test overlapping edge cases for removeItem()
PASS circle1.setAttribute('transform', 'scale(2 2) translate(10 10)') is undefined.
@@ -75,7 +75,7 @@
PASS circle1.transform.baseVal.replaceItem(30, 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.replaceItem must be an instance of SVGTransform.
PASS circle1.transform.baseVal.replaceItem('aString', 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.replaceItem must be an instance of SVGTransform.
PASS circle1.transform.baseVal.replaceItem(circle1, 0) threw exception TypeError: Argument 1 ('item') to SVGTransformList.replaceItem must be an instance of SVGTransform.
-PASS circle1.transform.baseVal.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS circle1.transform.baseVal.replaceItem(null, 0) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS circle1.transform.baseVal.replaceItem(circle1.transform.baseVal.getItem(0), 0) is circle1.transform.baseVal.getItem(0)
PASS circle1.transform.baseVal.numberOfItems is 4
PASS dumpTransform(circle1.transform.baseVal.getItem(0)) is "type=SVG_TRANSFORM_ROTATE matrix=[0.0 1.0 -1.0 0.0 0.0 0.0]"
@@ -126,7 +126,7 @@
PASS circle1.transform.baseVal.appendItem(30) threw exception TypeError: Argument 1 ('item') to SVGTransformList.appendItem must be an instance of SVGTransform.
PASS circle1.transform.baseVal.appendItem('aString') threw exception TypeError: Argument 1 ('item') to SVGTransformList.appendItem must be an instance of SVGTransform.
PASS circle1.transform.baseVal.appendItem(circle1) threw exception TypeError: Argument 1 ('item') to SVGTransformList.appendItem must be an instance of SVGTransform.
-PASS circle1.transform.baseVal.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS circle1.transform.baseVal.appendItem(null) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
Testing animVal clear throws
PASS circle1.transform.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
Modified: trunk/LayoutTests/svg/dom/svglist-exception-on-out-bounds-error-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/dom/svglist-exception-on-out-bounds-error-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/dom/svglist-exception-on-out-bounds-error-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -4,40 +4,40 @@
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS svgList.getItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.insertItemBefore(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.insertItemBefore(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.insertItemBefore(seg, index) is seg
PASS svgList.replaceItem(seg, index) threw exception Error: IndexSizeError: DOM Exception 1.
-PASS svgList.replaceItem(null, index) threw exception Error: SVG_WRONG_TYPE_ERR: DOM SVG Exception 0.
+PASS svgList.replaceItem(null, index) threw exception SVG_WRONG_TYPE_ERR (DOM SVG Exception): An object of the wrong type was passed to an operation..
PASS svgList.removeItem(index) threw exception Error: IndexSizeError: DOM Exception 1.
PASS successfullyParsed is true
Modified: trunk/LayoutTests/svg/filters/feBlend-invalid-mode-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/filters/feBlend-invalid-mode-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/filters/feBlend-invalid-mode-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,2 +1,2 @@
-CONSOLE MESSAGE: line 14: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1: An invalid value was passed to an operation or assigned to an attribute.
+CONSOLE MESSAGE: line 14: SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute.
PASS: Invalid blend modes do not trigger a crash.
Modified: trunk/LayoutTests/svg/filters/feComponentTransfer-style-crash-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/filters/feComponentTransfer-style-crash-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/filters/feComponentTransfer-style-crash-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,2 +1,2 @@
-ALERT: Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1
+ALERT: SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute.
PASS
Modified: trunk/LayoutTests/svg/filters/feDisplacementMap-crash-test-expected.txt (203327 => 203328)
--- trunk/LayoutTests/svg/filters/feDisplacementMap-crash-test-expected.txt 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/LayoutTests/svg/filters/feDisplacementMap-crash-test-expected.txt 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,2 +1,2 @@
-ALERT: Error: SVG_INVALID_VALUE_ERR: DOM SVG Exception 1
+ALERT: SVG_INVALID_VALUE_ERR (DOM SVG Exception 1): An invalid value was passed to an operation or assigned to an attribute.
PASS
Modified: trunk/Source/WebCore/ChangeLog (203327 => 203328)
--- trunk/Source/WebCore/ChangeLog 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/Source/WebCore/ChangeLog 2016-07-16 21:33:01 UTC (rev 203328)
@@ -1,3 +1,21 @@
+2016-07-16 Brady Eidson <[email protected]>
+
+ Update SVGException to use the description in toString().
+ https://bugs.webkit.org/show_bug.cgi?id=159847
+
+ Reviewed by Darin Adler.
+
+ No new tests (Covered by changes to existing tests).
+
+ * bindings/js/JSDOMBinding.cpp:
+ (WebCore::reportException): use consoleErrorMessage for now.
+
+ * dom/ExceptionBase.cpp:
+ (WebCore::ExceptionBase::consoleErrorMessage):
+ * dom/ExceptionBase.h:
+
+ * svg/SVGException.h:
+
2016-07-16 Chris Dumez <[email protected]>
Use fastHasAttribute() when possible
Modified: trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp (203327 => 203328)
--- trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/Source/WebCore/bindings/js/JSDOMBinding.cpp 2016-07-16 21:33:01 UTC (rev 203328)
@@ -200,7 +200,7 @@
String errorMessage;
JSValue exceptionValue = exception->value();
if (ExceptionBase* exceptionBase = toExceptionBase(exceptionValue))
- errorMessage = exceptionBase->message() + ": " + exceptionBase->description();
+ errorMessage = exceptionBase->consoleErrorMessage();
else {
// FIXME: <http://webkit.org/b/115087> Web Inspector: WebCore::reportException should not evaluate _javascript_ handling exceptions
// If this is a custom exception object, call toString on it to try and get a nice string representation for the exception.
Modified: trunk/Source/WebCore/dom/ExceptionBase.cpp (203327 => 203328)
--- trunk/Source/WebCore/dom/ExceptionBase.cpp 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/Source/WebCore/dom/ExceptionBase.cpp 2016-07-16 21:33:01 UTC (rev 203328)
@@ -51,6 +51,14 @@
m_message = makeString(description.typeName, " Exception ", String::number(description.code));
}
+String ExceptionBase::consoleErrorMessage() const
+{
+ if (m_messageSource == MessageSource::UseDescription)
+ return toString();
+
+ return makeString(m_message, ": ", m_description);
+}
+
String ExceptionBase::toString() const
{
if (m_messageSource != MessageSource::UseDescription)
Modified: trunk/Source/WebCore/dom/ExceptionBase.h (203327 => 203328)
--- trunk/Source/WebCore/dom/ExceptionBase.h 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/Source/WebCore/dom/ExceptionBase.h 2016-07-16 21:33:01 UTC (rev 203328)
@@ -46,6 +46,10 @@
String toString() const;
+ // FIXME: consoleErrorMessage is needed temporarily while bug 159822 is in progress.
+ // Once 159822 is complete, consoleErrorMessage can be dropped and its callers will use toString instead.
+ String consoleErrorMessage() const;
+
protected:
enum class MessageSource {
ConstructMessage,
Modified: trunk/Source/WebCore/svg/SVGException.h (203327 => 203328)
--- trunk/Source/WebCore/svg/SVGException.h 2016-07-16 18:31:19 UTC (rev 203327)
+++ trunk/Source/WebCore/svg/SVGException.h 2016-07-16 21:33:01 UTC (rev 203328)
@@ -45,7 +45,7 @@
private:
SVGException(const ExceptionCodeDescription& description)
- : ExceptionBase(description)
+ : ExceptionBase(description, ExceptionBase::MessageSource::UseDescription)
{
}
};