| OLD | NEW |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGFEMorphologyElement | 1 This test checks the use of SVGAnimatedEnumeration within SVGFEMorphologyElement |
| 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 'operator' value | 7 Check initial 'operator' value |
| 8 PASS feMorphologyElement.operator.toString() is "[object SVGAnimatedEnumeration]
" | 8 PASS feMorphologyElement.operator.toString() is "[object SVGAnimatedEnumeration]
" |
| 9 PASS typeof(feMorphologyElement.operator.baseVal) is "number" | 9 PASS typeof(feMorphologyElement.operator.baseVal) is "number" |
| 10 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_ERODE | 10 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_ERODE |
| 11 | 11 |
| 12 Switch to 'dilate' | 12 Switch to 'dilate' |
| 13 PASS feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOG
Y_OPERATOR_DILATE is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE | 13 PASS feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOG
Y_OPERATOR_DILATE is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE |
| 14 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE | 14 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE |
| 15 PASS feMorphologyElement.getAttribute('operator') is "dilate" | 15 PASS feMorphologyElement.getAttribute('operator') is "dilate" |
| 16 | 16 |
| 17 Try setting invalid values | 17 Try setting invalid values |
| 18 PASS feMorphologyElement.operator.baseVal = 4 threw exception Error: SVG_INVALID
_VALUE_ERR: DOM SVG Exception 1. | 18 PASS feMorphologyElement.operator.baseVal = 4 threw exception SVG_INVALID_VALUE_
ERR: An invalid value was passed to an operation or assigned to an attribute.. |
| 19 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE | 19 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE |
| 20 PASS feMorphologyElement.getAttribute('operator') is "dilate" | 20 PASS feMorphologyElement.getAttribute('operator') is "dilate" |
| 21 PASS feMorphologyElement.operator.baseVal = -1 threw exception Error: SVG_INVALI
D_VALUE_ERR: DOM SVG Exception 1. | 21 PASS feMorphologyElement.operator.baseVal = -1 threw exception SVG_INVALID_VALUE
_ERR: An invalid value was passed to an operation or assigned to an attribute.. |
| 22 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE | 22 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE |
| 23 PASS feMorphologyElement.getAttribute('operator') is "dilate" | 23 PASS feMorphologyElement.getAttribute('operator') is "dilate" |
| 24 PASS feMorphologyElement.operator.baseVal = 0 threw exception Error: SVG_INVALID
_VALUE_ERR: DOM SVG Exception 1. | 24 PASS feMorphologyElement.operator.baseVal = 0 threw exception SVG_INVALID_VALUE_
ERR: An invalid value was passed to an operation or assigned to an attribute.. |
| 25 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE | 25 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_DILATE |
| 26 PASS feMorphologyElement.getAttribute('operator') is "dilate" | 26 PASS feMorphologyElement.getAttribute('operator') is "dilate" |
| 27 | 27 |
| 28 Switch to 'erode' | 28 Switch to 'erode' |
| 29 PASS feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOG
Y_OPERATOR_ERODE is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE | 29 PASS feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOG
Y_OPERATOR_ERODE is SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE |
| 30 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_ERODE | 30 PASS feMorphologyElement.operator.baseVal is SVGFEMorphologyElement.SVG_MORPHOLO
GY_OPERATOR_ERODE |
| 31 PASS feMorphologyElement.getAttribute('operator') is "erode" | 31 PASS feMorphologyElement.getAttribute('operator') is "erode" |
| 32 PASS successfullyParsed is true | 32 PASS successfullyParsed is true |
| 33 | 33 |
| 34 TEST COMPLETE | 34 TEST COMPLETE |
| 35 | 35 |
| OLD | NEW |