OLD | NEW |
1 <head> | 1 <head> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 </head> | 3 </head> |
4 <body> | 4 <body> |
5 <script> | 5 <script> |
6 description("This tests that document.createEvent is hooked up for all Event
interfaces (and alternatives) and creates the right instance.") | 6 description("This tests that document.createEvent is hooked up for all Event
interfaces (and alternatives) and creates the right instance.") |
7 | 7 |
8 // AnimationEvent | 8 // AnimationEvent |
9 shouldBeTrue("document.createEvent('AnimationEvent') instanceof window.Anima
tionEvent"); | 9 shouldBeTrue("document.createEvent('AnimationEvent') instanceof window.Anima
tionEvent"); |
10 shouldBeTrue("document.createEvent('AnimationEvent') instanceof window.Event
"); | 10 shouldBeTrue("document.createEvent('AnimationEvent') instanceof window.Event
"); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.Event"); | 150 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.Event"); |
151 shouldBeTrue("document.createEvent('WebKitTransitionEvent').constructor ===
window.WebKitTransitionEvent"); | 151 shouldBeTrue("document.createEvent('WebKitTransitionEvent').constructor ===
window.WebKitTransitionEvent"); |
152 | 152 |
153 // WheelEvent | 153 // WheelEvent |
154 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); | 154 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); |
155 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); | 155 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); |
156 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; | 156 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; |
157 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); | 157 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); |
158 shouldBeTrue("document.createEvent('WheelEvent').constructor === window.Whee
lEvent"); | 158 shouldBeTrue("document.createEvent('WheelEvent').constructor === window.Whee
lEvent"); |
159 | 159 |
160 // XMLHttpRequestProgressEvent | |
161 shouldBeTrue("document.createEvent('XMLHttpRequestProgressEvent') instanceof
window.XMLHttpRequestProgressEvent"); | |
162 shouldBeTrue("document.createEvent('XMLHttpRequestProgressEvent') instanceof
window.ProgressEvent"); | |
163 shouldBeTrue("document.createEvent('XMLHttpRequestProgressEvent') instanceof
window.Event"); | |
164 shouldBeTrue("document.createEvent('XMLHttpRequestProgressEvent').constructo
r === window.XMLHttpRequestProgressEvent"); | |
165 | |
166 // StorageEvent | 160 // StorageEvent |
167 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage
Event"); | 161 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage
Event"); |
168 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event")
; | 162 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event")
; |
169 shouldBeTrue("document.createEvent('StorageEvent').constructor === window.St
orageEvent"); | 163 shouldBeTrue("document.createEvent('StorageEvent').constructor === window.St
orageEvent"); |
170 | 164 |
171 // SVGEvents (Event alternative) | 165 // SVGEvents (Event alternative) |
172 shouldBeTrue("document.createEvent('SVGEvents') instanceof window.Event"); | 166 shouldBeTrue("document.createEvent('SVGEvents') instanceof window.Event"); |
173 shouldBeTrue("document.createEvent('SVGEvents').constructor === window.Event
"); | 167 shouldBeTrue("document.createEvent('SVGEvents').constructor === window.Event
"); |
174 | 168 |
175 // SVGZoomEvent | 169 // SVGZoomEvent |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); | 266 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); |
273 } | 267 } |
274 } | 268 } |
275 } | 269 } |
276 shouldBeTrue('allEventInterfacesCreateEvents'); | 270 shouldBeTrue('allEventInterfacesCreateEvents'); |
277 </script> | 271 </script> |
278 | 272 |
279 | 273 |
280 | 274 |
281 </body> | 275 </body> |
OLD | NEW |