| OLD | NEW |
| (Empty) |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGFEConvolveMatrixEle
ment | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Check initial 'edgeMode' value | |
| 8 PASS feConvolveMatrixElement.edgeMode.toString() is "[object SVGAnimatedEnumerat
ion]" | |
| 9 PASS typeof(feConvolveMatrixElement.edgeMode.baseVal) is "number" | |
| 10 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_DUPLICATE | |
| 11 | |
| 12 Switch to 'wrap' | |
| 13 PASS feConvolveMatrixElement.edgeMode.baseVal = SVGFEConvolveMatrixElement.SVG_E
DGEMODE_WRAP is SVGFEConvolveMatrixElement.SVG_EDGEMODE_WRAP | |
| 14 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_WRAP | |
| 15 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "wrap" | |
| 16 | |
| 17 Switch to 'none' | |
| 18 PASS feConvolveMatrixElement.edgeMode.baseVal = SVGFEConvolveMatrixElement.SVG_E
DGEMODE_NONE is SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE | |
| 19 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_NONE | |
| 20 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none" | |
| 21 | |
| 22 Try setting invalid values | |
| 23 PASS feConvolveMatrixElement.edgeMode.baseVal = 4 threw exception TypeError: Fai
led to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration v
alue provided (4) is larger than the largest allowed value (3).. | |
| 24 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_NONE | |
| 25 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none" | |
| 26 PASS feConvolveMatrixElement.edgeMode.baseVal = -1 threw exception TypeError: Fa
iled to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration
value provided (65535) is larger than the largest allowed value (3).. | |
| 27 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_NONE | |
| 28 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none" | |
| 29 PASS feConvolveMatrixElement.edgeMode.baseVal = 0 threw exception TypeError: Fai
led to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration v
alue provided is 0, which is not settable.. | |
| 30 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_NONE | |
| 31 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "none" | |
| 32 | |
| 33 Switch to 'duplicate' | |
| 34 PASS feConvolveMatrixElement.edgeMode.baseVal = SVGFEConvolveMatrixElement.SVG_E
DGEMODE_DUPLICATE is SVGFEConvolveMatrixElement.SVG_EDGEMODE_DUPLICATE | |
| 35 PASS feConvolveMatrixElement.edgeMode.baseVal is SVGFEConvolveMatrixElement.SVG_
EDGEMODE_DUPLICATE | |
| 36 PASS feConvolveMatrixElement.getAttribute('edgeMode') is "duplicate" | |
| 37 PASS successfullyParsed is true | |
| 38 | |
| 39 TEST COMPLETE | |
| 40 | |
| OLD | NEW |