| OLD | NEW |
| 1 This test checks the SVGPaint API | 1 This test checks the SVGPaint API |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 Check initial paint values | 7 Check initial paint values |
| 8 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 8 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 9 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 9 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 10 PASS fillPaint.uri is "" | 10 PASS fillPaint.uri is "" |
| 11 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 11 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 12 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 12 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 13 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 13 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 14 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 14 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 15 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 15 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 16 PASS rectElement.style.fill is "#008000" | 16 PASS rectElement.style.fill is "#008000" |
| 17 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 17 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 18 | 18 |
| 19 Try invalid arguments for setPaint() | 19 Try invalid arguments for setPaint() |
| 20 PASS fillPaint.setPaint(null, null, null, null) threw exception Error: NoModific
ationAllowedError: DOM Exception 7. | 20 PASS fillPaint.setPaint(null, null, null, null) threw exception NoModificationAl
lowedError: An attempt was made to modify an object where modifications are not
allowed.. |
| 21 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); th
rew exception Error: NoModificationAllowedError: DOM Exception 7. | 21 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); th
rew exception NoModificationAllowedError: An attempt was made to modify an objec
t where modifications are not allowed.. |
| 22 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, '', '') threw exception
TypeError: Not enough arguments. | 22 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, '', '') threw exception
TypeError: Not enough arguments. |
| 23 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR + 1, '', '', ''
); threw exception Error: NoModificationAllowedError: DOM Exception 7. | 23 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.. |
| 24 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exce
ption Error: NoModificationAllowedError: DOM Exception 7. | 24 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exce
ption NoModificationAllowedError: An attempt was made to modify an object where
modifications are not allowed.. |
| 25 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw excep
tion Error: NoModificationAllowedError: DOM Exception 7. | 25 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw excep
tion NoModificationAllowedError: An attempt was made to modify an object where m
odifications are not allowed.. |
| 26 PASS fillPaint.setPaint() threw exception TypeError: Not enough arguments. | 26 PASS fillPaint.setPaint() threw exception TypeError: Not enough arguments. |
| 27 PASS fillPaint.setPaint(fillPaint) threw exception TypeError: Not enough argumen
ts. | 27 PASS fillPaint.setPaint(fillPaint) threw exception TypeError: Not enough argumen
ts. |
| 28 | 28 |
| 29 Try invalid arguments for setUri() | 29 Try invalid arguments for setUri() |
| 30 PASS fillPaint.setUri() threw exception TypeError: Not enough arguments. | 30 PASS fillPaint.setUri() threw exception TypeError: Not enough arguments. |
| 31 | 31 |
| 32 Try assigning to the readonly paintType property, which silently fails | 32 Try assigning to the readonly paintType property, which silently fails |
| 33 PASS fillPaint.paintType = SVGPaint.SVG_PAINTTYPE_UNKKNOWN; is undefined. | 33 PASS fillPaint.paintType = SVGPaint.SVG_PAINTTYPE_UNKKNOWN; is undefined. |
| 34 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 34 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 35 PASS rectElement.style.fill is "#008000" | 35 PASS rectElement.style.fill is "#008000" |
| 36 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 36 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 37 | 37 |
| 38 Test using setPaint() and SVG_PAINTTYPE_UNKNOWN | 38 Test using setPaint() and SVG_PAINTTYPE_UNKNOWN |
| 39 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw excep
tion Error: NoModificationAllowedError: DOM Exception 7. | 39 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw excep
tion NoModificationAllowedError: An attempt was made to modify an object where m
odifications are not allowed.. |
| 40 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') th
rew exception Error: NoModificationAllowedError: DOM Exception 7. | 40 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') th
rew exception NoModificationAllowedError: An attempt was made to modify an objec
t where modifications are not allowed.. |
| 41 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', 'rgb(0,128,128)', '
') threw exception Error: NoModificationAllowedError: DOM Exception 7. | 41 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.. |
| 42 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRG
B, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7
. | 42 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRG
B, 0, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to
modify an object where modifications are not allowed.. |
| 43 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', 'rgb(0,0,0
)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedErr
or: DOM Exception 7. | 43 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.. |
| 44 | 44 |
| 45 Test using setPaint() and SVG_PAINTTYPE_NONE - a | 45 Test using setPaint() and SVG_PAINTTYPE_NONE - a |
| 46 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception
Error: NoModificationAllowedError: DOM Exception 7. | 46 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception
NoModificationAllowedError: An attempt was made to modify an object where modif
ications are not allowed.. |
| 47 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 47 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 48 PASS rectElement.style.fill is "#008000" | 48 PASS rectElement.style.fill is "#008000" |
| 49 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 49 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 50 | 50 |
| 51 Reset style to initial value | 51 Reset style to initial value |
| 52 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 52 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 53 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 53 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 54 PASS rectElement.style.fill is "#008000" | 54 PASS rectElement.style.fill is "#008000" |
| 55 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 55 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 56 | 56 |
| 57 Test using setPaint() and SVG_PAINTTYPE_NONE - b | 57 Test using setPaint() and SVG_PAINTTYPE_NONE - b |
| 58 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw
exception Error: NoModificationAllowedError: DOM Exception 7. | 58 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw
exception NoModificationAllowedError: An attempt was made to modify an object wh
ere modifications are not allowed.. |
| 59 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 59 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 60 PASS rectElement.style.fill is "#008000" | 60 PASS rectElement.style.fill is "#008000" |
| 61 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 61 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 62 | 62 |
| 63 Reset style to initial value | 63 Reset style to initial value |
| 64 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 64 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 65 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 65 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 66 PASS rectElement.style.fill is "#008000" | 66 PASS rectElement.style.fill is "#008000" |
| 67 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 67 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 68 | 68 |
| 69 Test using setPaint() and SVG_PAINTTYPE_NONE - c | 69 Test using setPaint() and SVG_PAINTTYPE_NONE - c |
| 70 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') t
hrew exception Error: NoModificationAllowedError: DOM Exception 7. | 70 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') t
hrew exception NoModificationAllowedError: An attempt was made to modify an obje
ct where modifications are not allowed.. |
| 71 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 71 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 72 PASS rectElement.style.fill is "#008000" | 72 PASS rectElement.style.fill is "#008000" |
| 73 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 73 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 74 | 74 |
| 75 Reset style to initial value | 75 Reset style to initial value |
| 76 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 76 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 77 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 77 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 78 PASS rectElement.style.fill is "#008000" | 78 PASS rectElement.style.fill is "#008000" |
| 79 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 79 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 80 | 80 |
| 81 Test using setPaint() and SVG_PAINTTYPE_NONE - d | 81 Test using setPaint() and SVG_PAINTTYPE_NONE - d |
| 82 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0
, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7. | 82 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0
, 1, 2)') threw exception NoModificationAllowedError: An attempt was made to mod
ify an object where modifications are not allowed.. |
| 83 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 83 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 84 PASS rectElement.style.fill is "#008000" | 84 PASS rectElement.style.fill is "#008000" |
| 85 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 85 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 86 | 86 |
| 87 Reset style to initial value | 87 Reset style to initial value |
| 88 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 88 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 89 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 89 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 90 PASS rectElement.style.fill is "#008000" | 90 PASS rectElement.style.fill is "#008000" |
| 91 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 91 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 92 | 92 |
| 93 Test using setPaint() and SVG_PAINTTYPE_NONE - e | 93 Test using setPaint() and SVG_PAINTTYPE_NONE - e |
| 94 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. | 94 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)',
'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An atte
mpt was made to modify an object where modifications are not allowed.. |
| 95 PASS rectElement.style.fill is "#008000" | 95 PASS rectElement.style.fill is "#008000" |
| 96 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 96 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 97 | 97 |
| 98 Test using setPaint() and SVG_PAINTTYPE_URI - a | 98 Test using setPaint() and SVG_PAINTTYPE_URI - a |
| 99 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception
Error: NoModificationAllowedError: DOM Exception 7. | 99 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception
NoModificationAllowedError: An attempt was made to modify an object where modifi
cations are not allowed.. |
| 100 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 100 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 101 PASS rectElement.style.fill is "#008000" | 101 PASS rectElement.style.fill is "#008000" |
| 102 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 102 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 103 | 103 |
| 104 Test using setPaint() and SVG_PAINTTYPE_URI - b | 104 Test using setPaint() and SVG_PAINTTYPE_URI - b |
| 105 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') th
rew exception Error: NoModificationAllowedError: DOM Exception 7. | 105 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') th
rew exception NoModificationAllowedError: An attempt was made to modify an objec
t where modifications are not allowed.. |
| 106 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 106 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 107 PASS rectElement.style.fill is "#008000" | 107 PASS rectElement.style.fill is "#008000" |
| 108 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 108 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 109 | 109 |
| 110 Test using setPaint() and SVG_PAINTTYPE_URI - c | 110 Test using setPaint() and SVG_PAINTTYPE_URI - c |
| 111 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0,
1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7. | 111 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0,
1, 2)') threw exception NoModificationAllowedError: An attempt was made to modi
fy an object where modifications are not allowed.. |
| 112 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 112 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 113 PASS rectElement.style.fill is "#008000" | 113 PASS rectElement.style.fill is "#008000" |
| 114 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 114 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 115 | 115 |
| 116 Test using setPaint() and SVG_PAINTTYPE_URI - d | 116 Test using setPaint() and SVG_PAINTTYPE_URI - d |
| 117 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw
exception Error: NoModificationAllowedError: DOM Exception 7. | 117 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw
exception NoModificationAllowedError: An attempt was made to modify an object wh
ere modifications are not allowed.. |
| 118 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 118 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 119 PASS fillPaint.uri is "" | 119 PASS fillPaint.uri is "" |
| 120 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 120 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 121 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 121 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 122 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 122 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 123 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 123 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 124 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 124 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 125 PASS rectElement.style.fill is "#008000" | 125 PASS rectElement.style.fill is "#008000" |
| 126 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 126 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 127 | 127 |
| 128 Reset style to initial value | 128 Reset style to initial value |
| 129 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" | 129 PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is "
[object SVGPaint]" |
| 130 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 130 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 131 PASS rectElement.style.fill is "#008000" | 131 PASS rectElement.style.fill is "#008000" |
| 132 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 132 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 133 | 133 |
| 134 Test using setPaint() and SVG_PAINTTYPE_URI - e | 134 Test using setPaint() and SVG_PAINTTYPE_URI - e |
| 135 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', '
icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: D
OM Exception 7. | 135 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', '
icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: An attem
pt was made to modify an object where modifications are not allowed.. |
| 136 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 136 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 137 PASS fillPaint.uri is "" | 137 PASS fillPaint.uri is "" |
| 138 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 138 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 139 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 139 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 140 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 140 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 141 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 141 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 142 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 142 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 143 PASS rectElement.style.fill is "#008000" | 143 PASS rectElement.style.fill is "#008000" |
| 144 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 144 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 145 | 145 |
| 146 Test using setPaint() and SVG_PAINTTYPE_URI_NONE | 146 Test using setPaint() and SVG_PAINTTYPE_URI_NONE |
| 147 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,
0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedEr
ror: DOM Exception 7. | 147 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.. |
| 148 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 148 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 149 PASS fillPaint.uri is "" | 149 PASS fillPaint.uri is "" |
| 150 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 150 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 151 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 151 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 152 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 152 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 153 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 153 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 154 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 154 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 155 PASS rectElement.style.fill is "#008000" | 155 PASS rectElement.style.fill is "#008000" |
| 156 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 156 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 157 | 157 |
| 158 Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR | 158 Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR |
| 159 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'r
gb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAl
lowedError: DOM Exception 7. | 159 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'r
gb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedEr
ror: An attempt was made to modify an object where modifications are not allowed
.. |
| 160 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 160 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 161 PASS fillPaint.uri is "" | 161 PASS fillPaint.uri is "" |
| 162 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 162 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 163 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 163 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 164 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 164 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 165 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 165 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 166 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 166 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 167 PASS rectElement.style.fill is "#008000" | 167 PASS rectElement.style.fill is "#008000" |
| 168 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 168 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 169 | 169 |
| 170 Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR | 170 Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR |
| 171 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(
77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAll
owedError: DOM Exception 7. | 171 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(
77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedErr
or: An attempt was made to modify an object where modifications are not allowed.
. |
| 172 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 172 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 173 PASS fillPaint.uri is "" | 173 PASS fillPaint.uri is "" |
| 174 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 174 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 175 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 175 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 176 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 176 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 177 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 177 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 178 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 178 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 179 PASS rectElement.style.fill is "#008000" | 179 PASS rectElement.style.fill is "#008000" |
| 180 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 180 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 181 | 181 |
| 182 Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR | 182 Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR |
| 183 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)
', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModific
ationAllowedError: DOM Exception 7. | 183 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)
', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAl
lowedError: An attempt was made to modify an object where modifications are not
allowed.. |
| 184 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 184 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 185 PASS fillPaint.uri is "" | 185 PASS fillPaint.uri is "" |
| 186 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 186 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 187 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 187 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 188 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 188 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 189 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 189 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 190 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 190 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 191 PASS rectElement.style.fill is "#008000" | 191 PASS rectElement.style.fill is "#008000" |
| 192 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 192 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 193 | 193 |
| 194 Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR | 194 Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR |
| 195 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)',
'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificati
onAllowedError: DOM Exception 7. | 195 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)',
'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllow
edError: An attempt was made to modify an object where modifications are not all
owed.. |
| 196 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 196 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 197 PASS fillPaint.uri is "" | 197 PASS fillPaint.uri is "" |
| 198 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 198 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 199 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 199 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 200 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 200 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 201 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 201 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 202 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 202 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 203 PASS rectElement.style.fill is "#008000" | 203 PASS rectElement.style.fill is "#008000" |
| 204 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 204 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 205 | 205 |
| 206 Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR | 206 Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR |
| 207 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(7
7,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllo
wedError: DOM Exception 7. | 207 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(7
7,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedErro
r: An attempt was made to modify an object where modifications are not allowed.. |
| 208 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 208 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 209 PASS fillPaint.uri is "" | 209 PASS fillPaint.uri is "" |
| 210 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 210 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 211 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 211 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 212 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 212 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 213 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 213 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 214 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 214 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 215 PASS rectElement.style.fill is "#008000" | 215 PASS rectElement.style.fill is "#008000" |
| 216 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 216 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 217 | 217 |
| 218 Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR | 218 Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR |
| 219 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77
,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedE
rror: DOM Exception 7. | 219 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77
,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception NoModificationAllowedError: A
n attempt was made to modify an object where modifications are not allowed.. |
| 220 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 220 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 221 PASS fillPaint.uri is "" | 221 PASS fillPaint.uri is "" |
| 222 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 222 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 223 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 223 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 224 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 224 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 225 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 225 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 226 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 226 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 227 PASS rectElement.style.fill is "#008000" | 227 PASS rectElement.style.fill is "#008000" |
| 228 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 228 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 229 | 229 |
| 230 Test using setUri() | 230 Test using setUri() |
| 231 PASS fillPaint.setUri('url(#foobar)'); is undefined. | 231 PASS fillPaint.setUri('url(#foobar)'); is undefined. |
| 232 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR | 232 PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR |
| 233 PASS fillPaint.uri is "" | 233 PASS fillPaint.uri is "" |
| 234 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR | 234 PASS fillPaint.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR |
| 235 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" | 235 PASS (fillColor = fillPaint.rgbColor).toString() is "[object RGBColor]" |
| 236 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 236 PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 237 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 | 237 PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128 |
| 238 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 | 238 PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0 |
| 239 PASS rectElement.style.fill is "#008000" | 239 PASS rectElement.style.fill is "#008000" |
| 240 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" | 240 PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000" |
| 241 PASS successfullyParsed is true | 241 PASS successfullyParsed is true |
| 242 | 242 |
| 243 TEST COMPLETE | 243 TEST COMPLETE |
| 244 | 244 |
| OLD | NEW |