| -webkit-animation-duration: 1s; |
| -webkit-animation-timing-function: linear; |
| @-webkit-keyframes bounce { |
| <script src="resources/animation-test-helpers.js"></script> |
| function animationStarted() |
| var target = document.getElementById('target'); |
| var paused = internals.pauseAnimationAtTimeOnElement("bounce", 1.0, target); |
| result = "PASS: correctly paused animation"; |
| result = "FAIL: failed to pause animation"; |
| document.getElementById('results').innerText = result; |
| document.getElementById('results').innerText = "This test requires WebCore Internals"; |
| var target = document.getElementById('target'); |
| target.style.webkitAnimationName = "bounce"; |
| waitForAnimationToStart(target, animationStarted); |
| <body onload="startTest()"> |
| <!-- Test for Internals pauseAnimationAtTimeOnElement() API --> |