OLD | NEW |
| (Empty) |
1 This test checks the use of SVGAnimatedEnumeration within SVGFilterElement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial 'filterUnits' value | |
8 PASS filterElement.filterUnits.toString() is "[object SVGAnimatedEnumeration]" | |
9 PASS typeof(filterElement.filterUnits.baseVal) is "number" | |
10 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON
USE | |
11 | |
12 Switch to 'objectBoundingBox' | |
13 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDI
NGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX | |
14 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND
INGBOX | |
15 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" | |
16 | |
17 Try setting invalid values | |
18 PASS filterElement.filterUnits.baseVal = 3 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr
ovided (3) is larger than the largest allowed value (2).. | |
19 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND
INGBOX | |
20 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" | |
21 PASS filterElement.filterUnits.baseVal = -1 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value p
rovided (65535) is larger than the largest allowed value (2).. | |
22 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND
INGBOX | |
23 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" | |
24 PASS filterElement.filterUnits.baseVal = 0 threw exception TypeError: Failed to
set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr
ovided is 0, which is not settable.. | |
25 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND
INGBOX | |
26 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" | |
27 | |
28 Switch to 'userSpaceOnUse' | |
29 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONU
SE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE | |
30 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON
USE | |
31 PASS filterElement.getAttribute('filterUnits') is "userSpaceOnUse" | |
32 | |
33 Check initial 'primitiveUnits' value | |
34 PASS filterElement.primitiveUnits.toString() is "[object SVGAnimatedEnumeration]
" | |
35 PASS typeof(filterElement.primitiveUnits.baseVal) is "number" | |
36 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC
EONUSE | |
37 | |
38 Switch to 'objectBoundingBox' | |
39 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOU
NDINGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX | |
40 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO
UNDINGBOX | |
41 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" | |
42 | |
43 Try setting invalid values | |
44 PASS filterElement.primitiveUnits.baseVal = 3 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value
provided (3) is larger than the largest allowed value (2).. | |
45 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO
UNDINGBOX | |
46 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" | |
47 PASS filterElement.primitiveUnits.baseVal = -1 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration valu
e provided (65535) is larger than the largest allowed value (2).. | |
48 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO
UNDINGBOX | |
49 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" | |
50 PASS filterElement.primitiveUnits.baseVal = 0 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value
provided is 0, which is not settable.. | |
51 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO
UNDINGBOX | |
52 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" | |
53 | |
54 Switch to 'userSpaceOnUse' | |
55 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACE
ONUSE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE | |
56 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC
EONUSE | |
57 PASS filterElement.getAttribute('primitiveUnits') is "userSpaceOnUse" | |
58 PASS successfullyParsed is true | |
59 | |
60 TEST COMPLETE | |
61 | |
OLD | NEW |