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

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

Issue 2803603003: Removing support for document.createEvent("ProgressEvent") (Closed)
Patch Set: Rebase Patch Created 3 years, 8 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // PageTransitionEvent 101 // PageTransitionEvent
102 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window. PageTransitionEvent"); 102 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window. PageTransitionEvent");
103 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window. Event"); 103 shouldBeTrue("document.createEvent('PageTransitionEvent') instanceof window. Event");
104 shouldBeTrue("document.createEvent('PageTransitionEvent').constructor === wi ndow.PageTransitionEvent"); 104 shouldBeTrue("document.createEvent('PageTransitionEvent').constructor === wi ndow.PageTransitionEvent");
105 105
106 // PopStateEvent 106 // PopStateEvent
107 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.PopSta teEvent"); 107 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.PopSta teEvent");
108 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.Event" ); 108 shouldBeTrue("document.createEvent('PopStateEvent') instanceof window.Event" );
109 shouldBeTrue("document.createEvent('PopStateEvent').constructor === window.P opStateEvent"); 109 shouldBeTrue("document.createEvent('PopStateEvent').constructor === window.P opStateEvent");
110 110
111 // ProgressEvent
112 shouldBeTrue("document.createEvent('ProgressEvent') instanceof window.Progre ssEvent");
113 shouldBeTrue("document.createEvent('ProgressEvent') instanceof window.Event" );
114 shouldBeTrue("document.createEvent('ProgressEvent').constructor === window.P rogressEvent");
115
116 // TextEvent 111 // TextEvent
117 shouldBeTrue("document.createEvent('TextEvent') instanceof window.TextEvent" ); 112 shouldBeTrue("document.createEvent('TextEvent') instanceof window.TextEvent" );
118 shouldBeTrue("document.createEvent('TextEvent') instanceof window.UIEvent"); 113 shouldBeTrue("document.createEvent('TextEvent') instanceof window.UIEvent");
119 shouldBeTrue("document.createEvent('TextEvent') instanceof window.Event"); 114 shouldBeTrue("document.createEvent('TextEvent') instanceof window.Event");
120 shouldBeTrue("document.createEvent('TextEvent').constructor === window.TextE vent"); 115 shouldBeTrue("document.createEvent('TextEvent').constructor === window.TextE vent");
121 116
122 // UIEvent 117 // UIEvent
123 shouldBeTrue("document.createEvent('UIEvent') instanceof window.UIEvent"); 118 shouldBeTrue("document.createEvent('UIEvent') instanceof window.UIEvent");
124 shouldBeTrue("document.createEvent('UIEvent') instanceof window.Event"); 119 shouldBeTrue("document.createEvent('UIEvent') instanceof window.Event");
125 shouldBeTrue("document.createEvent('UIEvent').constructor === window.UIEvent "); 120 shouldBeTrue("document.createEvent('UIEvent').constructor === window.UIEvent ");
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e); 225 debug("'document.createEvent(propertyName).constructor === windo w[propertyName]' with propertyName: " + propertyName + " threw an exception: " + e);
231 } 226 }
232 } 227 }
233 } 228 }
234 shouldBeTrue('allEventInterfacesCreateEvents'); 229 shouldBeTrue('allEventInterfacesCreateEvents');
235 </script> 230 </script>
236 231
237 232
238 233
239 </body> 234 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698