| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 shouldBeTrue("document.createEvent('UIEvents').constructor === window.UIEven
t"); | 128 shouldBeTrue("document.createEvent('UIEvents').constructor === window.UIEven
t"); |
| 129 shouldBeTrue("document.createEvent('UIEvENts') instanceof window.UIEvent"); | 129 shouldBeTrue("document.createEvent('UIEvENts') instanceof window.UIEvent"); |
| 130 shouldBeTrue("document.createEvent('UIEvENts') instanceof window.Event"); | 130 shouldBeTrue("document.createEvent('UIEvENts') instanceof window.Event"); |
| 131 shouldBeTrue("document.createEvent('UIEvENts').constructor === window.UIEven
t"); | 131 shouldBeTrue("document.createEvent('UIEvENts').constructor === window.UIEven
t"); |
| 132 | 132 |
| 133 // TransitionEvent | 133 // TransitionEvent |
| 134 shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.Tran
sitionEvent"); | 134 shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.Tran
sitionEvent"); |
| 135 shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.Even
t"); | 135 shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.Even
t"); |
| 136 shouldBeTrue("document.createEvent('TransitionEvent').constructor === window
.TransitionEvent"); | 136 shouldBeTrue("document.createEvent('TransitionEvent').constructor === window
.TransitionEvent"); |
| 137 | 137 |
| 138 // WebKitTransitionEvent | |
| 139 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.WebKitTransitionEvent"); | |
| 140 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.Event"); | |
| 141 shouldBeTrue("document.createEvent('WebKitTransitionEvent').constructor ===
window.WebKitTransitionEvent"); | |
| 142 | |
| 143 // WheelEvent | 138 // WheelEvent |
| 144 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); | 139 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); |
| 145 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); | 140 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); |
| 146 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; | 141 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; |
| 147 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); | 142 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); |
| 148 shouldBeTrue("document.createEvent('WheelEvent').constructor === window.Whee
lEvent"); | 143 shouldBeTrue("document.createEvent('WheelEvent').constructor === window.Whee
lEvent"); |
| 149 | 144 |
| 150 // StorageEvent | 145 // StorageEvent |
| 151 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage
Event"); | 146 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage
Event"); |
| 152 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event")
; | 147 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event")
; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); | 215 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); |
| 221 } | 216 } |
| 222 } | 217 } |
| 223 } | 218 } |
| 224 shouldBeTrue('allEventInterfacesCreateEvents'); | 219 shouldBeTrue('allEventInterfacesCreateEvents'); |
| 225 </script> | 220 </script> |
| 226 | 221 |
| 227 | 222 |
| 228 | 223 |
| 229 </body> | 224 </body> |
| OLD | NEW |