4 <title>Test animations with repeated iterations and short loops</title>
12 -webkit-animation-duration: 0.001s;
13 -webkit-animation-name: anim;
14 background-color: #999;
15 -webkit-animation-iteration-count: 2;
17 @-webkit-keyframes anim {
23 if (window.layoutTestController) {
24 layoutTestController.dumpAsText();
25 layoutTestController.waitUntilDone();
30 document.addEventListener('webkitAnimationEnd', function() {
31 document.getElementById('result').innerHTML = 'PASS: got webkitAnimationEnd event';
32 if (window.layoutTestController)
33 layoutTestController.notifyDone();
36 // Animation begins once we append the DOM node to the document.
37 var boxNode = document.createElement('div');
39 document.body.appendChild(boxNode);
44 Checks that we still end an animation properly (i.e. fire a webkitAnimationEnd
45 event) when using more than one iteration with very short durations.
46 <pre id="result">FAIL: no webkitAnimationEnd event received</pre>