OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Tests that custom events with prefixed animations names are correctly d
ispatched.</title> | 4 <title>Tests that custom events with prefixed animations names are correctly d
ispatched.</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 prefixed animations names are correctly dispatched
. | 42 Tests that custom events with prefixed animations names are correctly dispatched
. |
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('webkitAnimationStart', true, true); | 47 custom.initCustomEvent('webkitAnimationStart', true, true, null); |
48 document.dispatchEvent(custom); | 48 document.dispatchEvent(custom); |
49 custom = document.createEvent('CustomEvent'); | 49 custom = document.createEvent('CustomEvent'); |
50 custom.initCustomEvent('webkitAnimationIteration', true, true); | 50 custom.initCustomEvent('webkitAnimationIteration', true, true, null); |
51 document.dispatchEvent(custom); | 51 document.dispatchEvent(custom); |
52 custom = document.createEvent('CustomEvent'); | 52 custom = document.createEvent('CustomEvent'); |
53 custom.initCustomEvent('webkitAnimationEnd', true, true); | 53 custom.initCustomEvent('webkitAnimationEnd', true, true, null); |
54 document.dispatchEvent(custom); | 54 document.dispatchEvent(custom); |
55 </script> | 55 </script> |
56 </html> | 56 </html> |
OLD | NEW |