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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt ('k') | LayoutTests/svg/dom/SVGLength-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]"
« no previous file with comments | « LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt ('k') | LayoutTests/svg/dom/SVGLength-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698