1 This tests the constructor for the AnimationEvent DOM class.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new AnimationEvent('eventType').bubbles is false
7 PASS new AnimationEvent('eventType').cancelable is false
8 PASS new AnimationEvent('eventType').animationName is ""
9 PASS new AnimationEvent('eventType').elapsedTime is 0
10 PASS new AnimationEvent('eventType', { bubbles: false }).bubbles is false
11 PASS new AnimationEvent('eventType', { bubbles: true }).bubbles is true
12 PASS new AnimationEvent('eventType', { cancelable: false }).cancelable is false
13 PASS new AnimationEvent('eventType', { cancelable: true }).cancelable is true
14 PASS new AnimationEvent('eventType', { animationName: 'doremi' }).animationName is "doremi"
15 PASS new AnimationEvent('eventType', { animationName: '' }).animationName is ""
16 PASS new AnimationEvent('eventType', { animationName: undefined }).animationName is ""
17 PASS new AnimationEvent('eventType', { animationName: null }).animationName is "null"
18 PASS new AnimationEvent('eventType', { animationName: false }).animationName is "false"
19 PASS new AnimationEvent('eventType', { animationName: true }).animationName is "true"
20 PASS new AnimationEvent('eventType', { animationName: 12345 }).animationName is "12345"
21 PASS new AnimationEvent('eventType', { animationName: 18446744073709551615 }).animationName is "18446744073709552000"
22 PASS new AnimationEvent('eventType', { animationName: NaN }).animationName is "NaN"
23 PASS new AnimationEvent('eventType', { animationName: [] }).animationName is ""
24 PASS new AnimationEvent('eventType', { animationName: [1, 2, 3] }).animationName is "1,2,3"
25 PASS new AnimationEvent('eventType', { animationName: {doremi: 12345} }).animationName is "[object Object]"
26 PASS new AnimationEvent('eventType', { animationName: {valueOf: function () { return 'doremi'; } } }).animationName is "[object Object]"
27 PASS new AnimationEvent('eventType', { elapsedTime: 0 }).elapsedTime is 0
28 PASS new AnimationEvent('eventType', { elapsedTime: 123.45 }).elapsedTime is 123.45
29 PASS new AnimationEvent('eventType', { elapsedTime: -123.45 }).elapsedTime is -123.45
30 PASS new AnimationEvent('eventType', { elapsedTime: 18446744073709551615 }).elapsedTime is 18446744073709551615
31 PASS new AnimationEvent('eventType', { elapsedTime: NaN }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
32 PASS new AnimationEvent('eventType', { elapsedTime: Infinity }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
33 PASS new AnimationEvent('eventType', { elapsedTime: -Infinity }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
34 PASS new AnimationEvent('eventType', { elapsedTime: undefined }).elapsedTime is 0
35 PASS new AnimationEvent('eventType', { elapsedTime: null }).elapsedTime is 0
36 PASS new AnimationEvent('eventType', { elapsedTime: false }).elapsedTime is 0
37 PASS new AnimationEvent('eventType', { elapsedTime: true }).elapsedTime is 1
38 PASS new AnimationEvent('eventType', { elapsedTime: '' }).elapsedTime is 0
39 PASS new AnimationEvent('eventType', { elapsedTime: 'doremi' }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
40 PASS new AnimationEvent('eventType', { elapsedTime: [] }).elapsedTime is 0
41 PASS new AnimationEvent('eventType', { elapsedTime: [123.45] }).elapsedTime is 123.45
42 PASS new AnimationEvent('eventType', { elapsedTime: [123.45, 678.90] }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
43 PASS new AnimationEvent('eventType', { elapsedTime: {doremi: 123.45} }).elapsedTime threw exception TypeError: Failed to construct 'AnimationEvent': The provided double value is non-finite..
44 PASS new AnimationEvent('eventType', { elapsedTime: {valueOf: function () { return 123.45 } } }).elapsedTime is 123.45
45 PASS new AnimationEvent('eventType', { bubbles: true, cancelable: true, animationName: 'doremi', elapsedTime: 123.45 }).bubbles is true
46 PASS new AnimationEvent('eventType', { bubbles: true, cancelable: true, animationName: 'doremi', elapsedTime: 123.45 }).cancelable is true
47 PASS new AnimationEvent('eventType', { bubbles: true, cancelable: true, animationName: 'doremi', elapsedTime: 123.45 }).animationName is 'doremi'
48 PASS new AnimationEvent('eventType', { bubbles: true, cancelable: true, animationName: 'doremi', elapsedTime: 123.45 }).elapsedTime is 123.45
49 PASS successfullyParsed is true