1 This tests the init functions for all the event DOM classes that have them.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS testInitEvent('', '"a", false, false').type is 'a'
7 PASS testInitEvent('', 'null, false, false').type is 'null'
8 PASS testInitEvent('', '"a", false, false').bubbles is false
9 PASS testInitEvent('', '"a", true, false').bubbles is true
10 PASS testInitEvent('', '"a", false, false').cancelable is false
11 PASS testInitEvent('', '"a", false, true').cancelable is true
12 PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').type is 'a'
13 PASS testInitEvent('Keyboard', 'null, false, false, window, "b", 1001, false, false, false, false, false').type is 'null'
14 PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').bubbles is false
15 PASS testInitEvent('Keyboard', '"a", true, false, window, "b", 1001, false, false, false, false, false').bubbles is true
16 PASS testInitEvent('Keyboard', '"a", false, false, window, "b", 1001, false, false, false, false, false').cancelable is false
17 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').cancelable is true
18 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').view is window
19 PASS testInitEvent('Keyboard', '"a", false, true, null, "b", 1001, false, false, false, false, false').view is null
20 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyIdentifier is 'b'
21 PASS testInitEvent('Keyboard', '"a", false, true, window, null, 1001, false, false, false, false, false').keyIdentifier is 'null'
22 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyLocation is 1001
23 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').ctrlKey is false
24 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, true, false, false, false, false').ctrlKey is true
25 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').altKey is false
26 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, true, false, false, false').altKey is true
27 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').shiftKey is false
28 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, true, false, false').shiftKey is true
29 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').metaKey is false
30 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, true, false').metaKey is true
31 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').altGraphKey is false
32 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, true').altGraphKey is true
33 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, true').detail is 0
34 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').keyCode is 0
35 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').charCode is 0
36 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').layerX is 0
37 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').layerY is 0
38 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').pageX is 0
39 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').pageY is 0
40 PASS testInitEvent('Keyboard', '"a", false, true, window, "b", 1001, false, false, false, false, false').which is 0
41 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').type is 'a'
42 PASS testInitEvent('Message', 'null, false, false, "b", "c", "d", window, null').type is 'null'
43 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').bubbles is false
44 PASS testInitEvent('Message', '"a", true, false, "b", "c", "d", window, null').bubbles is true
45 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').cancelable is false
46 PASS testInitEvent('Message', '"a", false, true, "b", "c", "d", window, null').cancelable is true
47 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').data is 'b'
48 PASS testInitEvent('Message', '"a", false, false, null, "c", "d", window, null').data is null
49 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').origin is 'c'
50 PASS testInitEvent('Message', '"a", false, false, "b", null, "d", window, null').origin is 'null'
51 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').lastEventId is 'd'
52 PASS testInitEvent('Message', '"a", false, false, "b", "c", null, window, null').lastEventId is 'null'
53 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", window, null').source is window
54 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, null').source is null
55 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, channelArray').ports[0] is channel.port1
56 PASS testInitEvent('Message', '"a", false, false, "b", "c", "d", null, channelArray').ports[1] is channel.port2
57 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').type is 'a'
58 PASS testInitEvent('Mouse', 'null, false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').type is 'null'
59 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').bubbles is false
60 PASS testInitEvent('Mouse', '"a", true, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').bubbles is true
61 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').cancelable is false
62 PASS testInitEvent('Mouse', '"a", false, true, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').cancelable is true
63 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').view is window
64 PASS testInitEvent('Mouse', '"a", false, false, null, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').view is null
65 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').detail is 1001
66 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').screenX is 1002
67 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').screenY is 1003
68 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').clientX is 1004
69 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').clientY is 1005
70 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').ctrlKey is false
71 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, true, false, false, false, 1006, null').ctrlKey is true
72 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').altKey is false
73 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, true, false, false, 1006, null').altKey is true
74 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').shiftKey is false
75 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, true, false, 1006, null').shiftKey is true
76 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').metaKey is false
77 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, true, 1006, null').metaKey is true
78 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').button is 1006
79 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').relatedTarget is null
80 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, document').relatedTarget is document
81 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').offsetX is 1004
82 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').offsetY is 1005
83 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').x is 1004
84 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').y is 1005
85 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').fromElement is null
86 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, document').fromElement is document
87 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').toElement is null
88 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').dataTransfer is null
89 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').keyCode is 0
90 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').charCode is 0
91 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerX is 1004
92 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').layerY is 1005
93 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').pageX is 1004
94 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').pageY is 1005
95 PASS testInitEvent('Mouse', '"a", false, false, window, 1001, 1002, 1003, 1004, 1005, false, false, false, false, 1006, null').which is 1007
96 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').type is 'a'
97 PASS testInitEvent('Mutation', 'null, false, false, null, "b", "c", "d", 1001').type is 'null'
98 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').bubbles is false
99 PASS testInitEvent('Mutation', '"a", true, false, null, "b", "c", "d", 1001').bubbles is true
100 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').cancelable is false
101 PASS testInitEvent('Mutation', '"a", false, true, null, "b", "c", "d", 1001').cancelable is true
102 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').relatedNode is null
103 PASS testInitEvent('Mutation', '"a", false, false, document, "b", "c", "d", 1001').relatedNode is document
104 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').prevValue is 'b'
105 PASS testInitEvent('Mutation', '"a", false, false, null, null, "c", "d", 1001').prevValue is 'null'
106 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').newValue is 'c'
107 PASS testInitEvent('Mutation', '"a", false, false, null, "b", null, "d", 1001').newValue is 'null'
108 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrName is 'd'
109 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", null, 1001').attrName is 'null'
110 PASS testInitEvent('Mutation', '"a", false, false, null, "b", "c", "d", 1001').attrChange is 1001
111 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').type is 'a'
112 PASS testInitEvent('Storage', 'null, false, false, "b", "c", "d", "e"').type is 'null'
113 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').bubbles is false
114 PASS testInitEvent('Storage', '"a", true, false, "b", "c", "d", "e"').bubbles is true
115 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').cancelable is false
116 PASS testInitEvent('Storage', '"a", false, true, "b", "c", "d", "e"').cancelable is true
117 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').key is 'b'
118 PASS testInitEvent('Storage', '"a", false, false, null, "c", "d", "e"').key is 'null'
119 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').oldValue is 'c'
120 PASS testInitEvent('Storage', '"a", false, false, "b", null, "d", "e"').oldValue is null
121 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').newValue is 'd'
122 PASS testInitEvent('Storage', '"a", false, false, "b", "c", null, "e"').newValue is null
123 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", "e"').url is 'e'
124 PASS testInitEvent('Storage', '"a", false, false, "b", "c", "d", null').url is 'null'
125 PASS testInitEvent('Text', '"a", false, false, window, "b"').type is 'a'
126 PASS testInitEvent('Text', 'null, false, false, window, "b"').type is 'null'
127 PASS testInitEvent('Text', '"a", false, false, window, "b"').bubbles is false
128 PASS testInitEvent('Text', '"a", true, false, window, "b"').bubbles is true
129 PASS testInitEvent('Text', '"a", false, false, window, "b"').cancelable is false
130 PASS testInitEvent('Text', '"a", false, true, window, "b"').cancelable is true
131 PASS testInitEvent('Text', '"a", false, false, window, "b"').view is window
132 PASS testInitEvent('Text', '"a", false, false, null, "b"').view is null
133 PASS testInitEvent('Text', '"a", false, false, window, "b"').data is 'b'
134 PASS testInitEvent('Text', '"a", false, false, window, null').data is 'null'
135 PASS testInitEvent('Text', '"a", false, false, window, "b"').detail is 0
136 PASS testInitEvent('Text', '"a", false, false, window, "b"').keyCode is 0
137 PASS testInitEvent('Text', '"a", false, false, window, "b"').charCode is 0
138 PASS testInitEvent('Text', '"a", false, false, window, "b"').layerX is 0
139 PASS testInitEvent('Text', '"a", false, false, window, "b"').layerY is 0
140 PASS testInitEvent('Text', '"a", false, false, window, "b"').pageX is 0
141 PASS testInitEvent('Text', '"a", false, false, window, "b"').pageY is 0
142 PASS testInitEvent('Text', '"a", false, false, window, "b"').which is 0
143 PASS testInitEvent('UI', '"a", false, false, window, 1001').type is 'a'
144 PASS testInitEvent('UI', 'null, false, false, window, 1001').type is 'null'
145 PASS testInitEvent('UI', '"a", false, false, window, 1001').bubbles is false
146 PASS testInitEvent('UI', '"a", true, false, window, 1001').bubbles is true
147 PASS testInitEvent('UI', '"a", false, false, window, 1001').cancelable is false
148 PASS testInitEvent('UI', '"a", false, true, window, 1001').cancelable is true
149 PASS testInitEvent('UI', '"a", false, false, window, 1001').view is window
150 PASS testInitEvent('UI', '"a", false, false, null, 1001').view is null
151 PASS testInitEvent('UI', '"a", false, false, window, 1001').detail is 1001
152 PASS testInitEvent('UI', '"a", false, false, window, 1001').keyCode is 0
153 PASS testInitEvent('UI', '"a", false, false, window, 1001').charCode is 0
154 PASS testInitEvent('UI', '"a", false, false, window, 1001').layerX is 0
155 PASS testInitEvent('UI', '"a", false, false, window, 1001').layerY is 0
156 PASS testInitEvent('UI', '"a", false, false, window, 1001').pageX is 0
157 PASS testInitEvent('UI', '"a", false, false, window, 1001').pageY is 0
158 PASS testInitEvent('UI', '"a", false, false, window, 1001').which is 0
159 PASS successfullyParsed is true