| Index: LayoutTests/svg/dom/SVGColor-expected.txt
|
| diff --git a/LayoutTests/svg/dom/SVGColor-expected.txt b/LayoutTests/svg/dom/SVGColor-expected.txt
|
| index edbd7ab62ddf0fa5373f279ec69b021d0fae9be4..bceaffed11b9b1ef9c8944fe3bc1fc416f37086e 100644
|
| --- a/LayoutTests/svg/dom/SVGColor-expected.txt
|
| +++ b/LayoutTests/svg/dom/SVGColor-expected.txt
|
| @@ -15,10 +15,10 @@ PASS stopElement.style.stopColor is "#ff0000"
|
| PASS document.defaultView.getComputedStyle(stopElement).stopColor is "rgb(255, 0, 0)"
|
|
|
| Try invalid arguments for setColor()
|
| -PASS stopColor.setColor(null, null, null) threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, svgElement, ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR + 1, '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS stopColor.setColor(null, null, null) threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, svgElement, ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR + 1, '', ''); threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| PASS stopColor.setColor() threw exception TypeError: Not enough arguments.
|
| PASS stopColor.setColor(stopColor) threw exception TypeError: Not enough arguments.
|
|
|
| @@ -29,13 +29,13 @@ PASS stopElement.style.stopColor is "#ff0000"
|
| PASS document.defaultView.getComputedStyle(stopElement).stopColor is "rgb(255, 0, 0)"
|
|
|
| Test using setColor() and SVG_COLORTYPE_UNKNOWN
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,128,128)', '') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to modify an object where modifications are not allowed..
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '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 setColor() and SVG_COLORTYPE_RGBCOLOR_ICCCOLOR
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, '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 stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS (rgbColor = stopColor.rgbColor).toString() is "[object RGBColor]"
|
| @@ -46,7 +46,7 @@ PASS stopElement.style.stopColor is "#ff0000"
|
| PASS document.defaultView.getComputedStyle(stopElement).stopColor is "rgb(255, 0, 0)"
|
|
|
| Test using setColor() and SVG_COLORTYPE_CURRENTCOLOR
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR, '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 stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS (rgbColor = stopColor.rgbColor).toString() is "[object RGBColor]"
|
| @@ -57,7 +57,7 @@ PASS stopElement.style.stopColor is "#ff0000"
|
| PASS document.defaultView.getComputedStyle(stopElement).stopColor is "rgb(255, 0, 0)"
|
|
|
| Test using setColor() and SVG_COLORTYPE_RGBCOLOR
|
| -PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
|
| +PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, '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 stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
|
| PASS (rgbColor = stopColor.rgbColor).toString() is "[object RGBColor]"
|
|
|