| OLD | NEW |
| (Empty) |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGFEColorMatrixElemen
t | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Check initial 'type; value | |
| 8 PASS feColorMatrixElement.type.toString() is "[object SVGAnimatedEnumeration]" | |
| 9 PASS typeof(feColorMatrixElement.type.baseVal) is "number" | |
| 10 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_MATRIX | |
| 11 | |
| 12 Switch to 'saturate' | |
| 13 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_SATURATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE | |
| 14 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_SATURATE | |
| 15 PASS feColorMatrixElement.getAttribute('type') is "saturate" | |
| 16 | |
| 17 Switch to 'hueRotate' | |
| 18 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_HUEROTATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE | |
| 19 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_HUEROTATE | |
| 20 PASS feColorMatrixElement.getAttribute('type') is "hueRotate" | |
| 21 | |
| 22 Switch to 'luminanceToAlpha' | |
| 23 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_LUMINANCETOALPHA is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMIN
ANCETOALPHA | |
| 24 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | |
| 25 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | |
| 26 | |
| 27 Try setting invalid values | |
| 28 PASS feColorMatrixElement.type.baseVal = 5 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr
ovided (5) is larger than the largest allowed value (4).. | |
| 29 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | |
| 30 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | |
| 31 PASS feColorMatrixElement.type.baseVal = -1 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value p
rovided (65535) is larger than the largest allowed value (4).. | |
| 32 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | |
| 33 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | |
| 34 PASS feColorMatrixElement.type.baseVal = 0 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr
ovided is 0, which is not settable.. | |
| 35 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | |
| 36 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | |
| 37 | |
| 38 Switch to 'matrix' | |
| 39 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_MATRIX is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX | |
| 40 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_MATRIX | |
| 41 PASS feColorMatrixElement.getAttribute('type') is "matrix" | |
| 42 PASS successfullyParsed is true | |
| 43 | |
| 44 TEST COMPLETE | |
| 45 | |
| OLD | NEW |