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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // MutationEvent | 91 // MutationEvent |
92 shouldBeTrue("document.createEvent('MutationEvent') instanceof window.Mutati
onEvent"); | 92 shouldBeTrue("document.createEvent('MutationEvent') instanceof window.Mutati
onEvent"); |
93 shouldBeTrue("document.createEvent('MutationEvent') instanceof window.Event"
); | 93 shouldBeTrue("document.createEvent('MutationEvent') instanceof window.Event"
); |
94 shouldBeTrue("document.createEvent('MutationEvent').constructor === window.M
utationEvent"); | 94 shouldBeTrue("document.createEvent('MutationEvent').constructor === window.M
utationEvent"); |
95 | 95 |
96 // MutationEvents (MutationEvent alternative) | 96 // MutationEvents (MutationEvent alternative) |
97 shouldBeTrue("document.createEvent('MutationEvents') instanceof window.Mutat
ionEvent"); | 97 shouldBeTrue("document.createEvent('MutationEvents') instanceof window.Mutat
ionEvent"); |
98 shouldBeTrue("document.createEvent('MutationEvents') instanceof window.Event
"); | 98 shouldBeTrue("document.createEvent('MutationEvents') instanceof window.Event
"); |
99 shouldBeTrue("document.createEvent('MutationEvents').constructor === window.
MutationEvent"); | 99 shouldBeTrue("document.createEvent('MutationEvents').constructor === window.
MutationEvent"); |
100 | 100 |
101 // OverflowEvent | |
102 shouldBeTrue("document.createEvent('OverflowEvent') instanceof window.Overfl
owEvent"); | |
103 shouldBeTrue("document.createEvent('OverflowEvent') instanceof window.Event"
); | |
104 shouldBeTrue("document.createEvent('OverflowEvent').constructor === window.O
verflowEvent"); | |
105 | |
106 // PageTransitionEvent | 101 // PageTransitionEvent |
107 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window.
PageTransitionEvent"); | 102 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window.
PageTransitionEvent"); |
108 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window.
Event"); | 103 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window.
Event"); |
109 shouldBeTrue("document.createEvent('PageTransitionEvent').constructor === wi
ndow.PageTransitionEvent"); | 104 shouldBeTrue("document.createEvent('PageTransitionEvent').constructor === wi
ndow.PageTransitionEvent"); |
110 | 105 |
111 // PopStateEvent | 106 // PopStateEvent |
112 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.PopSta
teEvent"); | 107 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.PopSta
teEvent"); |
113 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.Event"
); | 108 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.Event"
); |
114 shouldBeTrue("document.createEvent('PopStateEvent').constructor === window.P
opStateEvent"); | 109 shouldBeTrue("document.createEvent('PopStateEvent').constructor === window.P
opStateEvent"); |
115 | 110 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); | 272 debug("'document.createEvent(propertyName).constructor === windo
w[propertyName]' with propertyName: " + propertyName + " threw an exception: " +
e); |
278 } | 273 } |
279 } | 274 } |
280 } | 275 } |
281 shouldBeTrue('allEventInterfacesCreateEvents'); | 276 shouldBeTrue('allEventInterfacesCreateEvents'); |
282 </script> | 277 </script> |
283 | 278 |
284 | 279 |
285 | 280 |
286 </body> | 281 </body> |
OLD | NEW |