| OLD | NEW |
| 1 This test checks the use of SVGAnimatedEnumeration within SVGMarkerElement | 1 This test checks the use of SVGAnimatedEnumeration within SVGMarkerElement |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 Check initial 'markerUnits' value | 7 Check initial 'markerUnits' value |
| 8 PASS markerElement.markerUnits.toString() is "[object SVGAnimatedEnumeration]" | 8 PASS markerElement.markerUnits.toString() is "[object SVGAnimatedEnumeration]" |
| 9 PASS typeof(markerElement.markerUnits.baseVal) is "number" | 9 PASS typeof(markerElement.markerUnits.baseVal) is "number" |
| 10 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_USERS
PACEONUSE | 10 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_USERS
PACEONUSE |
| 11 | 11 |
| 12 Switch to 'strokeWidth' | 12 Switch to 'strokeWidth' |
| 13 PASS markerElement.markerUnits.baseVal = SVGMarkerElement.SVG_MARKERUNITS_STROKE
WIDTH is SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH | 13 PASS markerElement.markerUnits.baseVal = SVGMarkerElement.SVG_MARKERUNITS_STROKE
WIDTH is SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH |
| 14 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH | 14 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH |
| 15 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" | 15 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" |
| 16 | 16 |
| 17 Try setting invalid values | 17 Try setting invalid values |
| 18 PASS markerElement.markerUnits.baseVal = 3 threw exception Error: SVG_INVALID_VA
LUE_ERR: DOM SVG Exception 1. | 18 PASS markerElement.markerUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR
: An invalid value was passed to an operation or assigned to an attribute.. |
| 19 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH | 19 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH |
| 20 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" | 20 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" |
| 21 PASS markerElement.markerUnits.baseVal = -1 threw exception Error: SVG_INVALID_V
ALUE_ERR: DOM SVG Exception 1. | 21 PASS markerElement.markerUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ER
R: An invalid value was passed to an operation or assigned to an attribute.. |
| 22 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH | 22 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH |
| 23 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" | 23 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" |
| 24 PASS markerElement.markerUnits.baseVal = 0 threw exception Error: SVG_INVALID_VA
LUE_ERR: DOM SVG Exception 1. | 24 PASS markerElement.markerUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR
: An invalid value was passed to an operation or assigned to an attribute.. |
| 25 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH | 25 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_STROK
EWIDTH |
| 26 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" | 26 PASS markerElement.getAttribute('markerUnits') is "strokeWidth" |
| 27 | 27 |
| 28 Switch to 'userSpaceOnUse' | 28 Switch to 'userSpaceOnUse' |
| 29 PASS markerElement.markerUnits.baseVal = SVGMarkerElement.SVG_MARKERUNITS_USERSP
ACEONUSE is SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE | 29 PASS markerElement.markerUnits.baseVal = SVGMarkerElement.SVG_MARKERUNITS_USERSP
ACEONUSE is SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE |
| 30 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_USERS
PACEONUSE | 30 PASS markerElement.markerUnits.baseVal is SVGMarkerElement.SVG_MARKERUNITS_USERS
PACEONUSE |
| 31 PASS markerElement.getAttribute('markerUnits') is "userSpaceOnUse" | 31 PASS markerElement.getAttribute('markerUnits') is "userSpaceOnUse" |
| 32 | 32 |
| 33 Check initial 'orient' value | 33 Check initial 'orient' value |
| 34 PASS markerElement.orientType.toString() is "[object SVGAnimatedEnumeration]" | 34 PASS markerElement.orientType.toString() is "[object SVGAnimatedEnumeration]" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 PASS markerElement.getAttribute('orient') is "auto" | 75 PASS markerElement.getAttribute('orient') is "auto" |
| 76 | 76 |
| 77 Switch to '10deg' value - by modifying orientType to be angle again, the 10deg s
hould be preserved in the orientAngle, and the 'orient' attribute should change | 77 Switch to '10deg' value - by modifying orientType to be angle again, the 10deg s
hould be preserved in the orientAngle, and the 'orient' attribute should change |
| 78 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE | 78 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE |
| 79 PASS markerElement.orientAngle.baseVal.value is 10 | 79 PASS markerElement.orientAngle.baseVal.value is 10 |
| 80 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 80 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 81 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E | 81 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E |
| 82 PASS markerElement.getAttribute('orient') is "10deg" | 82 PASS markerElement.getAttribute('orient') is "10deg" |
| 83 | 83 |
| 84 Try setting invalid values | 84 Try setting invalid values |
| 85 PASS markerElement.orientType.baseVal = 3 threw exception Error: SVG_INVALID_VAL
UE_ERR: DOM SVG Exception 1. | 85 PASS markerElement.orientType.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR:
An invalid value was passed to an operation or assigned to an attribute.. |
| 86 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E | 86 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E |
| 87 PASS markerElement.getAttribute('orient') is "10deg" | 87 PASS markerElement.getAttribute('orient') is "10deg" |
| 88 PASS markerElement.orientType.baseVal = -1 threw exception Error: SVG_INVALID_VA
LUE_ERR: DOM SVG Exception 1. | 88 PASS markerElement.orientType.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR
: An invalid value was passed to an operation or assigned to an attribute.. |
| 89 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E | 89 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E |
| 90 PASS markerElement.getAttribute('orient') is "10deg" | 90 PASS markerElement.getAttribute('orient') is "10deg" |
| 91 PASS markerElement.orientType.baseVal = 0 threw exception Error: SVG_INVALID_VAL
UE_ERR: DOM SVG Exception 1. | 91 PASS markerElement.orientType.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR:
An invalid value was passed to an operation or assigned to an attribute.. |
| 92 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E | 92 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E |
| 93 PASS markerElement.getAttribute('orient') is "10deg" | 93 PASS markerElement.getAttribute('orient') is "10deg" |
| 94 | 94 |
| 95 Switch back to 'auto' value | 95 Switch back to 'auto' value |
| 96 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_AUTO
is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO | 96 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_AUTO
is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO |
| 97 PASS markerElement.orientAngle.baseVal.value is 10 | 97 PASS markerElement.orientAngle.baseVal.value is 10 |
| 98 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_DEG | 98 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_DEG |
| 99 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO | 99 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO |
| 100 PASS markerElement.getAttribute('orient') is "auto" | 100 PASS markerElement.getAttribute('orient') is "auto" |
| 101 | 101 |
| 102 Switch to '100grad' value - only touch orientAngle, shouldn't change orientType
nor the 'orient' attribute | 102 Switch to '100grad' value - only touch orientAngle, shouldn't change orientType
nor the 'orient' attribute |
| 103 PASS markerElement.orientAngle.baseVal.newValueSpecifiedUnits(SVGAngle.SVG_ANGLE
TYPE_GRAD, 100) is undefined. | 103 PASS markerElement.orientAngle.baseVal.newValueSpecifiedUnits(SVGAngle.SVG_ANGLE
TYPE_GRAD, 100) is undefined. |
| 104 PASS markerElement.orientAngle.baseVal.value is 90 | 104 PASS markerElement.orientAngle.baseVal.value is 90 |
| 105 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_GRAD | 105 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_GRAD |
| 106 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO | 106 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_AUTO |
| 107 PASS markerElement.getAttribute('orient') is "auto" | 107 PASS markerElement.getAttribute('orient') is "auto" |
| 108 | 108 |
| 109 Finish switching to '100grad' value - by modifying the orientType to angle | 109 Finish switching to '100grad' value - by modifying the orientType to angle |
| 110 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE | 110 PASS markerElement.orientType.baseVal = SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE
is SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE |
| 111 PASS markerElement.orientAngle.baseVal.value is 90 | 111 PASS markerElement.orientAngle.baseVal.value is 90 |
| 112 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_GRAD | 112 PASS markerElement.orientAngle.baseVal.unitType is SVGAngle.SVG_ANGLETYPE_GRAD |
| 113 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E | 113 PASS markerElement.orientType.baseVal is SVGMarkerElement.SVG_MARKER_ORIENT_ANGL
E |
| 114 PASS markerElement.getAttribute('orient') is "100grad" | 114 PASS markerElement.getAttribute('orient') is "100grad" |
| 115 PASS successfullyParsed is true | 115 PASS successfullyParsed is true |
| 116 | 116 |
| 117 TEST COMPLETE | 117 TEST COMPLETE |
| 118 | 118 |
| OLD | NEW |