OLD | NEW |
| (Empty) |
1 This test checks the use of SVGAnimatedEnumeration within SVGFEDisplacementMapEl
ement | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 | |
7 Check initial 'xChannelSelector' value | |
8 PASS feDisplacementMapElement.xChannelSelector.toString() is "[object SVGAnimate
dEnumeration]" | |
9 PASS typeof(feDisplacementMapElement.xChannelSelector.baseVal) is "number" | |
10 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_R | |
11 | |
12 Switch to 'G' | |
13 PASS feDisplacementMapElement.xChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_G is SVGFEDisplacementMapElement.SVG_CHANNEL_G | |
14 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_G | |
15 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "G" | |
16 | |
17 Switch to 'B' | |
18 PASS feDisplacementMapElement.xChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_B is SVGFEDisplacementMapElement.SVG_CHANNEL_B | |
19 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_B | |
20 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "B" | |
21 | |
22 Switch to 'A' | |
23 PASS feDisplacementMapElement.xChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_A is SVGFEDisplacementMapElement.SVG_CHANNEL_A | |
24 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
25 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A" | |
26 | |
27 Try setting invalid values | |
28 PASS feDisplacementMapElement.xChannelSelector.baseVal = 5 threw exception TypeE
rror: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enum
eration value provided (5) is larger than the largest allowed value (4).. | |
29 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
30 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A" | |
31 PASS feDisplacementMapElement.xChannelSelector.baseVal = -1 threw exception Type
Error: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enu
meration value provided (65535) is larger than the largest allowed value (4).. | |
32 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
33 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A" | |
34 PASS feDisplacementMapElement.xChannelSelector.baseVal = 0 threw exception TypeE
rror: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enum
eration value provided is 0, which is not settable.. | |
35 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
36 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "A" | |
37 | |
38 Switch to 'R' | |
39 PASS feDisplacementMapElement.xChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_R is SVGFEDisplacementMapElement.SVG_CHANNEL_R | |
40 PASS feDisplacementMapElement.xChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_R | |
41 PASS feDisplacementMapElement.getAttribute('xChannelSelector') is "R" | |
42 | |
43 Check initial 'yChannelSelector' value | |
44 PASS feDisplacementMapElement.yChannelSelector.toString() is "[object SVGAnimate
dEnumeration]" | |
45 PASS typeof(feDisplacementMapElement.yChannelSelector.baseVal) is "number" | |
46 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_R | |
47 | |
48 Switch to 'G' | |
49 PASS feDisplacementMapElement.yChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_G is SVGFEDisplacementMapElement.SVG_CHANNEL_G | |
50 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_G | |
51 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "G" | |
52 | |
53 Switch to 'B' | |
54 PASS feDisplacementMapElement.yChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_B is SVGFEDisplacementMapElement.SVG_CHANNEL_B | |
55 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_B | |
56 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "B" | |
57 | |
58 Switch to 'A' | |
59 PASS feDisplacementMapElement.yChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_A is SVGFEDisplacementMapElement.SVG_CHANNEL_A | |
60 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
61 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A" | |
62 | |
63 Try setting invalid values | |
64 PASS feDisplacementMapElement.yChannelSelector.baseVal = 5 threw exception TypeE
rror: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enum
eration value provided (5) is larger than the largest allowed value (4).. | |
65 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
66 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A" | |
67 PASS feDisplacementMapElement.yChannelSelector.baseVal = -1 threw exception Type
Error: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enu
meration value provided (65535) is larger than the largest allowed value (4).. | |
68 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
69 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A" | |
70 PASS feDisplacementMapElement.yChannelSelector.baseVal = 0 threw exception TypeE
rror: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enum
eration value provided is 0, which is not settable.. | |
71 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_A | |
72 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "A" | |
73 | |
74 Switch to 'R' | |
75 PASS feDisplacementMapElement.yChannelSelector.baseVal = SVGFEDisplacementMapEle
ment.SVG_CHANNEL_R is SVGFEDisplacementMapElement.SVG_CHANNEL_R | |
76 PASS feDisplacementMapElement.yChannelSelector.baseVal is SVGFEDisplacementMapEl
ement.SVG_CHANNEL_R | |
77 PASS feDisplacementMapElement.getAttribute('yChannelSelector') is "R" | |
78 PASS successfullyParsed is true | |
79 | |
80 TEST COMPLETE | |
81 | |
OLD | NEW |