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 // WebKitAnimationEvent | |
139 shouldBeTrue("document.createEvent('WebKitAnimationEvent') instanceof window
.WebKitAnimationEvent"); | |
140 shouldBeTrue("document.createEvent('WebKitAnimationEvent') instanceof window
.Event"); | |
141 shouldBeTrue("document.createEvent('WebKitAnimationEvent').constructor === w
indow.WebKitAnimationEvent"); | |
142 | |
143 // WebKitTransitionEvent | 138 // WebKitTransitionEvent |
144 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.WebKitTransitionEvent"); | 139 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.WebKitTransitionEvent"); |
145 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.Event"); | 140 shouldBeTrue("document.createEvent('WebKitTransitionEvent') instanceof windo
w.Event"); |
146 shouldBeTrue("document.createEvent('WebKitTransitionEvent').constructor ===
window.WebKitTransitionEvent"); | 141 shouldBeTrue("document.createEvent('WebKitTransitionEvent').constructor ===
window.WebKitTransitionEvent"); |
147 | 142 |
148 // WheelEvent | 143 // WheelEvent |
149 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); | 144 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.WheelEven
t"); |
150 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); | 145 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.MouseEven
t"); |
151 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; | 146 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.UIEvent")
; |
152 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); | 147 shouldBeTrue("document.createEvent('WheelEvent') instanceof window.Event"); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); | 220 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); |
226 } | 221 } |
227 } | 222 } |
228 } | 223 } |
229 shouldBeTrue('allEventInterfacesCreateEvents'); | 224 shouldBeTrue('allEventInterfacesCreateEvents'); |
230 </script> | 225 </script> |
231 | 226 |
232 | 227 |
233 | 228 |
234 </body> | 229 </body> |
OLD | NEW |