| OLD | NEW |
| (Empty) |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGClipPathElement | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Check initial 'clipPathUnits' value | |
| 8 PASS clipPathElement.clipPathUnits.toString() is "[object SVGAnimatedEnumeration
]" | |
| 9 PASS typeof(clipPathElement.clipPathUnits.baseVal) is "number" | |
| 10 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA
CEONUSE | |
| 11 | |
| 12 Switch to 'objectBoundingBox' | |
| 13 PASS clipPathElement.clipPathUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO
UNDINGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX | |
| 14 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTB
OUNDINGBOX | |
| 15 PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox" | |
| 16 | |
| 17 Try setting invalid values | |
| 18 PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration valu
e provided (3) is larger than the largest allowed value (2).. | |
| 19 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTB
OUNDINGBOX | |
| 20 PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox" | |
| 21 PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception TypeError: Faile
d to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration val
ue provided (65535) is larger than the largest allowed value (2).. | |
| 22 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTB
OUNDINGBOX | |
| 23 PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox" | |
| 24 PASS clipPathElement.clipPathUnits.baseVal = 0 threw exception TypeError: Failed
to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration valu
e provided is 0, which is not settable.. | |
| 25 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTB
OUNDINGBOX | |
| 26 PASS clipPathElement.getAttribute('clipPathUnits') is "objectBoundingBox" | |
| 27 | |
| 28 Switch to 'userSpaceOnUse' | |
| 29 PASS clipPathElement.clipPathUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC
EONUSE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE | |
| 30 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA
CEONUSE | |
| 31 PASS clipPathElement.getAttribute('clipPathUnits') is "userSpaceOnUse" | |
| 32 PASS successfullyParsed is true | |
| 33 | |
| 34 TEST COMPLETE | |
| 35 | |
| OLD | NEW |