4 <title>Test events when the animation has a short duration and is delayed
</title>
12 -webkit-animation-duration:
0.001s;
13 -webkit-animation-delay:
0.001s;
14 -webkit-animation-name: anim;
15 background-color: #
999;
16 -webkit-animation-iteration-count:
2;
18 @-webkit-keyframes anim {
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.waitUntilDone();
31 document
.addEventListener('webkitAnimationStart', function() {
32 document
.getElementById('result').innerHTML
= 'PASS: got webkitAnimationStart event';
34 document
.addEventListener('webkitAnimationEnd', function() {
35 document
.getElementById('result').innerHTML
+= '<br>PASS: got webkitAnimationEnd event';
36 if (window
.testRunner
)
37 testRunner
.notifyDone();
40 // Animation begins once we append the DOM node to the document.
41 var boxNode
= document
.createElement('div');
43 document
.body
.appendChild(boxNode
);
48 Test events when the animation has a short duration and is delayed.
49 <pre id=
"result">FAIL: No events received
</pre>