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

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

Issue 2133983003: Remove SVGZoomEvent interface and onzoom attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // StorageEvent 160 // StorageEvent
161 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage Event"); 161 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Storage Event");
162 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event") ; 162 shouldBeTrue("document.createEvent('StorageEvent') instanceof window.Event") ;
163 shouldBeTrue("document.createEvent('StorageEvent').constructor === window.St orageEvent"); 163 shouldBeTrue("document.createEvent('StorageEvent').constructor === window.St orageEvent");
164 164
165 // SVGEvents (Event alternative) 165 // SVGEvents (Event alternative)
166 shouldBeTrue("document.createEvent('SVGEvents') instanceof window.Event"); 166 shouldBeTrue("document.createEvent('SVGEvents') instanceof window.Event");
167 shouldBeTrue("document.createEvent('SVGEvents').constructor === window.Event "); 167 shouldBeTrue("document.createEvent('SVGEvents').constructor === window.Event ");
168 168
169 // SVGZoomEvent
170 shouldBeTrue("document.createEvent('SVGZoomEvent') instanceof window.SVGZoom Event");
171 shouldBeTrue("document.createEvent('SVGZoomEvent') instanceof window.Event") ;
172 shouldBeTrue("document.createEvent('SVGZoomEvent').constructor === window.SV GZoomEvent");
173
174 // SVGZoomEvents (SVGZoomEvent alternative)
175 shouldBeTrue("document.createEvent('SVGZoomEvents') instanceof window.SVGZoo mEvent");
176 shouldBeTrue("document.createEvent('SVGZoomEvents') instanceof window.Event" );
177 shouldBeTrue("document.createEvent('SVGZoomEvents').constructor === window.S VGZoomEvent");
178
179 // CloseEvent 169 // CloseEvent
180 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.CloseEven t"); 170 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.CloseEven t");
181 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.Event"); 171 shouldBeTrue("document.createEvent('CloseEvent') instanceof window.Event");
182 shouldBeTrue("document.createEvent('CloseEvent').constructor === window.Clos eEvent"); 172 shouldBeTrue("document.createEvent('CloseEvent').constructor === window.Clos eEvent");
183 173
184 // The following are here for completeness, but won't until there is more wi despread support for them. 174 // The following are here for completeness, but won't until there is more wi despread support for them.
185 175
186 // #if ENABLE(WEB_AUDIO) 176 // #if ENABLE(WEB_AUDIO)
187 // AudioProcessingEvent 177 // AudioProcessingEvent
188 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.AudioProcessingEvent"); 178 // shouldBeTrue("document.createEvent('AudioProcessingEvent') instanceof win dow.AudioProcessingEvent");
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e); 251 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e);
262 } 252 }
263 } 253 }
264 } 254 }
265 shouldBeTrue('allEventInterfacesCreateEvents'); 255 shouldBeTrue('allEventInterfacesCreateEvents');
266 </script> 256 </script>
267 257
268 258
269 259
270 </body> 260 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698