OLD | NEW |
1 <head> | 1 <head> |
2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 allEventInterfacesCreateEvents = false; | 265 allEventInterfacesCreateEvents = false; |
266 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); |
267 } | 267 } |
268 } | 268 } |
269 } | 269 } |
270 shouldBeTrue('allEventInterfacesCreateEvents'); | 270 shouldBeTrue('allEventInterfacesCreateEvents'); |
271 </script> | 271 </script> |
272 | 272 |
273 | 273 |
274 | 274 |
275 <script src="../js/resources/js-test-post.js"></script> | |
276 </body> | 275 </body> |
OLD | NEW |