Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: LayoutTests/fast/events/event-creation.html

Issue 604753003: Removing #ifdefs for WEB_AUDIO compile time flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/build/features.gypi » ('j') | Source/build/features.gypi » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 shouldBeTrue("document.createEvent('SVGZoomEvents') instanceof window.Event" ); 187 shouldBeTrue("document.createEvent('SVGZoomEvents') instanceof window.Event" );
188 shouldBeTrue("document.createEvent('SVGZoomEvents').constructor === window.S VGZoomEvent"); 188 shouldBeTrue("document.createEvent('SVGZoomEvents').constructor === window.S VGZoomEvent");
189 189
190 // CloseEvent 190 // CloseEvent
191 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.CloseEven t"); 191 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.CloseEven t");
192 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.Event"); 192 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.Event");
193 shouldBeTrue("document.createEvent('CloseEvent').constructor === window.Clos eEvent"); 193 shouldBeTrue("document.createEvent('CloseEvent').constructor === window.Clos eEvent");
194 194
195 // The following are here for completeness, but won't until there is more wi despread support for them. 195 // The following are here for completeness, but won't until there is more wi despread support for them.
196 196
197 // #if ENABLE(WEB_AUDIO)
198 // AudioProcessingEvent 197 // AudioProcessingEvent
199 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.AudioProcessingEvent"); 198 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.AudioProcessingEvent");
Mike West 2014/09/25 13:40:04 You should be able to uncomment these tests, corre
200 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.Event"); 199 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.Event");
201 // shouldBeTrue("document.createEvent('AudioProcessingEvent').constructor == = window.AudioProcessingEvent"); 200 // shouldBeTrue("document.createEvent('AudioProcessingEvent').constructor == = window.AudioProcessingEvent");
202 201
203 // #if ENABLE(WEB_AUDIO)
204 // OfflineAudioCompletionEvent 202 // OfflineAudioCompletionEvent
205 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent') instanc eof window.OfflineAudioCompletionEvent"); 203 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent') instanc eof window.OfflineAudioCompletionEvent");
206 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent') instanc eof window.Event"); 204 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent') instanc eof window.Event");
207 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent').constru ctor === window.OfflineAudioCompletionEvent"); 205 // shouldBeTrue("document.createEvent('OfflineAudioCompletionEvent').constru ctor === window.OfflineAudioCompletionEvent");
208 206
209 // MediaStreamEvent 207 // MediaStreamEvent
210 // shouldBeTrue("document.createEvent('MediaStreamEvent') instanceof window. MediaStreamEvent"); 208 // shouldBeTrue("document.createEvent('MediaStreamEvent') instanceof window. MediaStreamEvent");
211 // shouldBeTrue("document.createEvent('MediaStreamEvent') instanceof window. Event"); 209 // shouldBeTrue("document.createEvent('MediaStreamEvent') instanceof window. Event");
212 // shouldBeTrue("document.createEvent('MediaStreamEvent').constructor === wi ndow.MediaStreamEvent"); 210 // shouldBeTrue("document.createEvent('MediaStreamEvent').constructor === wi ndow.MediaStreamEvent");
213 211
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e); 275 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e);
278 } 276 }
279 } 277 }
280 } 278 }
281 shouldBeTrue('allEventInterfacesCreateEvents'); 279 shouldBeTrue('allEventInterfacesCreateEvents');
282 </script> 280 </script>
283 281
284 282
285 283
286 </body> 284 </body>
OLDNEW
« no previous file with comments | « no previous file | Source/build/features.gypi » ('j') | Source/build/features.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698