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

Side by Side Diff: LayoutTests/animations/animation-events-unprefixed-04.html

Issue 1300093003: [bindings] Make all CustomEvent.initCustomEvent arguments non-optional and remove custom binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Tests that custom events with unprefixed animations names are correctly dispatched.</title> 4 <title>Tests that custom events with unprefixed animations names are correctly dispatched.</title>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 } 9 }
10 10
(...skipping 26 matching lines...) Expand all
37 }, false); 37 }, false);
38 38
39 </script> 39 </script>
40 </head> 40 </head>
41 <body> 41 <body>
42 Tests that custom events with unprefixed animations names are correctly dispatch ed. 42 Tests that custom events with unprefixed animations names are correctly dispatch ed.
43 <pre id="result"></pre> 43 <pre id="result"></pre>
44 </body> 44 </body>
45 <script> 45 <script>
46 var custom = document.createEvent('CustomEvent'); 46 var custom = document.createEvent('CustomEvent');
47 custom.initCustomEvent('animationstart', true, true); 47 custom.initCustomEvent('animationstart', true, true, null);
48 document.dispatchEvent(custom); 48 document.dispatchEvent(custom);
49 custom = document.createEvent('CustomEvent'); 49 custom = document.createEvent('CustomEvent');
50 custom.initCustomEvent('animationiteration', true, true); 50 custom.initCustomEvent('animationiteration', true, true, null);
51 document.dispatchEvent(custom); 51 document.dispatchEvent(custom);
52 custom = document.createEvent('CustomEvent'); 52 custom = document.createEvent('CustomEvent');
53 custom.initCustomEvent('animationend', true, true); 53 custom.initCustomEvent('animationend', true, true, null);
54 document.dispatchEvent(custom); 54 document.dispatchEvent(custom);
55 </script> 55 </script>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698