OLD | NEW |
1 This test checks the use of SVGAnimatedEnumeration within SVGFEColorMatrixElemen
t | 1 This test checks the use of SVGAnimatedEnumeration within SVGFEColorMatrixElemen
t |
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 'type; value | 7 Check initial 'type; value |
8 PASS feColorMatrixElement.type.toString() is "[object SVGAnimatedEnumeration]" | 8 PASS feColorMatrixElement.type.toString() is "[object SVGAnimatedEnumeration]" |
9 PASS typeof(feColorMatrixElement.type.baseVal) is "number" | 9 PASS typeof(feColorMatrixElement.type.baseVal) is "number" |
10 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_MATRIX | 10 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_MATRIX |
11 | 11 |
12 Switch to 'saturate' | 12 Switch to 'saturate' |
13 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_SATURATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_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 | 14 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_SATURATE |
15 PASS feColorMatrixElement.getAttribute('type') is "saturate" | 15 PASS feColorMatrixElement.getAttribute('type') is "saturate" |
16 | 16 |
17 Switch to 'hueRotate' | 17 Switch to 'hueRotate' |
18 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_HUEROTATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_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 | 19 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_HUEROTATE |
20 PASS feColorMatrixElement.getAttribute('type') is "hueRotate" | 20 PASS feColorMatrixElement.getAttribute('type') is "hueRotate" |
21 | 21 |
22 Switch to 'luminanceToAlpha' | 22 Switch to 'luminanceToAlpha' |
23 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_LUMINANCETOALPHA is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMIN
ANCETOALPHA | 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 | 24 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA |
25 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | 25 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" |
26 | 26 |
27 Try setting invalid values | 27 Try setting invalid values |
28 PASS feColorMatrixElement.type.baseVal = 5 threw exception Error: SVG_INVALID_VA
LUE_ERR: DOM SVG Exception 1. | 28 PASS feColorMatrixElement.type.baseVal = 5 threw exception SVG_INVALID_VALUE_ERR
: An invalid value was passed to an operation or assigned to an attribute.. |
29 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | 29 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA |
30 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | 30 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" |
31 PASS feColorMatrixElement.type.baseVal = -1 threw exception Error: SVG_INVALID_V
ALUE_ERR: DOM SVG Exception 1. | 31 PASS feColorMatrixElement.type.baseVal = -1 threw exception SVG_INVALID_VALUE_ER
R: An invalid value was passed to an operation or assigned to an attribute.. |
32 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | 32 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA |
33 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | 33 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" |
34 PASS feColorMatrixElement.type.baseVal = 0 threw exception Error: SVG_INVALID_VA
LUE_ERR: DOM SVG Exception 1. | 34 PASS feColorMatrixElement.type.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR
: An invalid value was passed to an operation or assigned to an attribute.. |
35 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA | 35 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_LUMINANCETOALPHA |
36 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" | 36 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha" |
37 | 37 |
38 Switch to 'matrix' | 38 Switch to 'matrix' |
39 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR
IX_TYPE_MATRIX is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_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 | 40 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT
RIX_TYPE_MATRIX |
41 PASS feColorMatrixElement.getAttribute('type') is "matrix" | 41 PASS feColorMatrixElement.getAttribute('type') is "matrix" |
42 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
43 | 43 |
44 TEST COMPLETE | 44 TEST COMPLETE |
45 | 45 |
OLD | NEW |