OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>Document.createEvent</title> | 3 <title>Document.createEvent</title> |
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createevent"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-document-createevent"> |
5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
7 <script src="Document-createEvent.js"></script> | 7 <script src="Document-createEvent.js"></script> |
8 <div id="log"></div> | 8 <div id="log"></div> |
9 <script> | 9 <script> |
10 function testAlias(arg, iface) { | 10 function testAlias(arg, iface) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 "PresentationConnectionAvailableEvent", | 110 "PresentationConnectionAvailableEvent", |
111 "PresentationConnectionCloseEvent", | 111 "PresentationConnectionCloseEvent", |
112 "PromiseRejectionEvent", | 112 "PromiseRejectionEvent", |
113 "PushEvent", | 113 "PushEvent", |
114 "RTCDTMFToneChangeEvent", | 114 "RTCDTMFToneChangeEvent", |
115 "RTCDataChannelEvent", | 115 "RTCDataChannelEvent", |
116 "RTCIceCandidateEvent", | 116 "RTCIceCandidateEvent", |
117 "RelatedEvent", | 117 "RelatedEvent", |
118 "ResourceProgressEvent", | 118 "ResourceProgressEvent", |
119 "SVGEvent", | 119 "SVGEvent", |
| 120 "SVGZoomEvent", |
120 "ScrollAreaEvent", | 121 "ScrollAreaEvent", |
121 "SecurityPolicyViolationEvent", | 122 "SecurityPolicyViolationEvent", |
122 "ServicePortConnectEvent", | 123 "ServicePortConnectEvent", |
123 "ServiceWorkerMessageEvent", | 124 "ServiceWorkerMessageEvent", |
124 "SimpleGestureEvent", | 125 "SimpleGestureEvent", |
125 "SpeechRecognitionError", | 126 "SpeechRecognitionError", |
126 "SpeechRecognitionEvent", | 127 "SpeechRecognitionEvent", |
127 "SpeechSynthesisEvent", | 128 "SpeechSynthesisEvent", |
128 "SyncEvent", | 129 "SyncEvent", |
129 "TimeEvent", | 130 "TimeEvent", |
(...skipping 14 matching lines...) Expand all Loading... |
144 | 145 |
145 if (!(eventInterface + "s" in aliases)) { | 146 if (!(eventInterface + "s" in aliases)) { |
146 test(function () { | 147 test(function () { |
147 assert_throws("NOT_SUPPORTED_ERR", function () { | 148 assert_throws("NOT_SUPPORTED_ERR", function () { |
148 var evt = document.createEvent(eventInterface + "s"); | 149 var evt = document.createEvent(eventInterface + "s"); |
149 }); | 150 }); |
150 }, 'Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface
"' + eventInterface + 's"'); | 151 }, 'Should throw NOT_SUPPORTED_ERR for pluralized non-legacy event interface
"' + eventInterface + 's"'); |
151 } | 152 } |
152 }); | 153 }); |
153 </script> | 154 </script> |
OLD | NEW |