| OLD | NEW |
| (Empty) |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGFECompositeElement | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Check initial 'operator' value | |
| 8 PASS feCompositeElement.operator.toString() is "[object SVGAnimatedEnumeration]" | |
| 9 PASS typeof(feCompositeElement.operator.baseVal) is "number" | |
| 10 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_OVER | |
| 11 | |
| 12 Switch to 'in' | |
| 13 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_IN is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN | |
| 14 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_IN | |
| 15 PASS feCompositeElement.getAttribute('operator') is "in" | |
| 16 | |
| 17 Switch to 'out' | |
| 18 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_OUT is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT | |
| 19 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_OUT | |
| 20 PASS feCompositeElement.getAttribute('operator') is "out" | |
| 21 | |
| 22 Switch to 'atop' | |
| 23 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_ATOP is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ATOP | |
| 24 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_ATOP | |
| 25 PASS feCompositeElement.getAttribute('operator') is "atop" | |
| 26 | |
| 27 Switch to 'xor' | |
| 28 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_XOR is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_XOR | |
| 29 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_XOR | |
| 30 PASS feCompositeElement.getAttribute('operator') is "xor" | |
| 31 | |
| 32 Switch to 'arithmetic' | |
| 33 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_ARITHMETIC is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETI
C | |
| 34 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_ARITHMETIC | |
| 35 PASS feCompositeElement.getAttribute('operator') is "arithmetic" | |
| 36 | |
| 37 Try setting invalid values | |
| 38 PASS feCompositeElement.operator.baseVal = 7 threw exception TypeError: Failed t
o set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value
provided (7) is larger than the largest allowed value (6).. | |
| 39 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_ARITHMETIC | |
| 40 PASS feCompositeElement.getAttribute('operator') is "arithmetic" | |
| 41 PASS feCompositeElement.operator.baseVal = -1 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value
provided (65535) is larger than the largest allowed value (6).. | |
| 42 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_ARITHMETIC | |
| 43 PASS feCompositeElement.getAttribute('operator') is "arithmetic" | |
| 44 PASS feCompositeElement.operator.baseVal = 0 threw exception TypeError: Failed t
o set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value
provided is 0, which is not settable.. | |
| 45 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_ARITHMETIC | |
| 46 PASS feCompositeElement.getAttribute('operator') is "arithmetic" | |
| 47 | |
| 48 Switch to 'over' | |
| 49 PASS feCompositeElement.operator.baseVal = SVGFECompositeElement.SVG_FECOMPOSITE
_OPERATOR_OVER is SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OVER | |
| 50 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_OVER | |
| 51 PASS feCompositeElement.getAttribute('operator') is "over" | |
| 52 | |
| 53 Switch to 'lighter' | |
| 54 PASS SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_LIGHTER is undefined. | |
| 55 PASS feCompositeElement.operator.baseVal is SVGFECompositeElement.SVG_FECOMPOSIT
E_OPERATOR_UNKNOWN | |
| 56 PASS successfullyParsed is true | |
| 57 | |
| 58 TEST COMPLETE | |
| 59 | |
| OLD | NEW |