| <title>Test animations with repeated iterations and short loops</title> |
| -webkit-animation-duration: 0.001s; |
| -webkit-animation-name: anim; |
| -webkit-animation-iteration-count: 2; |
| @-webkit-keyframes anim { |
| testRunner.waitUntilDone(); |
| document.addEventListener('webkitAnimationEnd', function() { |
| document.getElementById('result').innerHTML = 'PASS: got webkitAnimationEnd event'; |
| // Animation begins once we append the DOM node to the document. |
| var boxNode = document.createElement('div'); |
| document.body.appendChild(boxNode); |
| Checks that we still end an animation properly (i.e. fire a webkitAnimationEnd |
| event) when using more than one iteration with very short durations. |
| <pre id="result">FAIL: no webkitAnimationEnd event received</pre> |