| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |