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