| OLD | NEW |
| (Empty) |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGComponentTransferFu
nctionElement | |
| 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 feFuncRElement.type.toString() is "[object SVGAnimatedEnumeration]" | |
| 9 PASS typeof(feFuncRElement.type.baseVal) is "number" | |
| 10 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_IDENTITY | |
| 11 | |
| 12 Switch to 'table' | |
| 13 PASS feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOM
PONENTTRANSFER_TYPE_TABLE is SVGComponentTransferFunctionElement.SVG_FECOMPONENT
TRANSFER_TYPE_TABLE | |
| 14 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_TABLE | |
| 15 PASS feFuncRElement.getAttribute('type') is "table" | |
| 16 | |
| 17 Switch to 'discrete' | |
| 18 PASS feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOM
PONENTTRANSFER_TYPE_DISCRETE is SVGComponentTransferFunctionElement.SVG_FECOMPON
ENTTRANSFER_TYPE_DISCRETE | |
| 19 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_DISCRETE | |
| 20 PASS feFuncRElement.getAttribute('type') is "discrete" | |
| 21 | |
| 22 Switch to 'linear' | |
| 23 PASS feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOM
PONENTTRANSFER_TYPE_LINEAR is SVGComponentTransferFunctionElement.SVG_FECOMPONEN
TTRANSFER_TYPE_LINEAR | |
| 24 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_LINEAR | |
| 25 PASS feFuncRElement.getAttribute('type') is "linear" | |
| 26 | |
| 27 Switch to 'gamma' | |
| 28 PASS feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOM
PONENTTRANSFER_TYPE_GAMMA is SVGComponentTransferFunctionElement.SVG_FECOMPONENT
TRANSFER_TYPE_GAMMA | |
| 29 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_GAMMA | |
| 30 PASS feFuncRElement.getAttribute('type') is "gamma" | |
| 31 | |
| 32 Try setting invalid values | |
| 33 PASS feFuncRElement.type.baseVal = 6 threw exception TypeError: Failed to set th
e 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided
(6) is larger than the largest allowed value (5).. | |
| 34 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_GAMMA | |
| 35 PASS feFuncRElement.getAttribute('type') is "gamma" | |
| 36 PASS feFuncRElement.type.baseVal = -1 threw exception TypeError: Failed to set t
he 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provide
d (65535) is larger than the largest allowed value (5).. | |
| 37 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_GAMMA | |
| 38 PASS feFuncRElement.getAttribute('type') is "gamma" | |
| 39 PASS feFuncRElement.type.baseVal = 0 threw exception TypeError: Failed to set th
e 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided
is 0, which is not settable.. | |
| 40 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_GAMMA | |
| 41 PASS feFuncRElement.getAttribute('type') is "gamma" | |
| 42 | |
| 43 Switch to 'identity' | |
| 44 PASS feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOM
PONENTTRANSFER_TYPE_IDENTITY is SVGComponentTransferFunctionElement.SVG_FECOMPON
ENTTRANSFER_TYPE_IDENTITY | |
| 45 PASS feFuncRElement.type.baseVal is SVGComponentTransferFunctionElement.SVG_FECO
MPONENTTRANSFER_TYPE_IDENTITY | |
| 46 PASS feFuncRElement.getAttribute('type') is "identity" | |
| 47 PASS successfullyParsed is true | |
| 48 | |
| 49 TEST COMPLETE | |
| 50 | |
| OLD | NEW |