| Index: LayoutTests/svg/dom/SVGPaint-expected.txt
|
| diff --git a/LayoutTests/svg/dom/SVGPaint-expected.txt b/LayoutTests/svg/dom/SVGPaint-expected.txt
|
| index dd00df966e1ad23deeec09733c1dd52f8394fa56..17fa0e4f97ea5e9689f786c4708057526fb429b0 100644
|
| --- a/LayoutTests/svg/dom/SVGPaint-expected.txt
|
| +++ b/LayoutTests/svg/dom/SVGPaint-expected.txt
|
| @@ -17,12 +17,12 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Try invalid arguments for setPaint()
|
| -PASS fillPaint.setPaint(null, null, null, null) threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(null, null, null, null) threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, '', '') threw exception TypeError: Not enough arguments.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR + 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR + 1, '', '', ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.setPaint() threw exception TypeError: Not enough arguments.
|
| PASS fillPaint.setPaint(fillPaint) threw exception TypeError: Not enough arguments.
|
|
|
| @@ -36,14 +36,14 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_UNKNOWN
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', 'rgb(0,128,128)', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_NONE - a
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
| @@ -55,7 +55,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_NONE - b
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
| @@ -67,7 +67,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_NONE - c
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
| @@ -79,7 +79,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_NONE - d
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
| @@ -91,30 +91,30 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_NONE - e
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI - a
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI - b
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI - c
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI - d
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -132,7 +132,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI - e
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -144,7 +144,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI_NONE
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -156,7 +156,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -168,7 +168,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -180,7 +180,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -192,7 +192,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -204,7 +204,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| @@ -216,7 +216,7 @@ PASS rectElement.style.fill is "#008000"
|
| PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
|
|
|
| Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR
|
| -PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
|
| PASS fillPaint.uri is ""
|
| PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
|
|