4 <title>Tests that iteration events are fired when the duration is very short.
</title>
12 -webkit-animation-duration:
0.001s;
13 -webkit-animation-name: anim;
14 background-color: #
999;
15 -webkit-animation-iteration-count:
10;
17 @-webkit-keyframes anim {
23 if (window
.testRunner
) {
24 testRunner
.dumpAsText();
25 testRunner
.waitUntilDone();
29 document
.getElementById('result').innerHTML
= 'FAIL: Got ' + count
+ ' webkitAnimationCount events';
35 document
.addEventListener('webkitAnimationIteration', function() {
39 document
.addEventListener('webkitAnimationEnd', function() {
40 // We collapse all iteration events that occur within a single
41 // frame into a single event. See http://crbug.com/275263.
43 document
.getElementById('result').innerHTML
= 'PASS: Got a reasonable number of webkitAnimationCount events';
46 if (window
.testRunner
)
47 testRunner
.notifyDone();
50 // Animation begins once we append the DOM node to the document.
51 var boxNode
= document
.createElement('div');
53 document
.body
.appendChild(boxNode
);
58 Tests that iteration events are fired when the duration is very short.
59 <pre id=
"result">FAIL: No webkitAnimationEnd event received
</pre>