10 background-color: blue;
11 -webkit-animation-duration: 1s;
12 -webkit-animation-timing-function: linear;
15 @-webkit-keyframes bounce {
26 <script src="resources/animation-test-helpers.js"></script>
28 if (window.layoutTestController) {
29 layoutTestController.waitUntilDone();
30 layoutTestController.dumpAsText();
33 function animationStarted()
35 if (window.layoutTestController) {
36 var paused = layoutTestController.pauseAnimationAtTimeOnElementWithId("bounce", 1.0, "target");
39 result = "PASS: correctly paused animation";
41 result = "FAIL: failed to pause animation";
43 document.getElementById('results').innerText = result;
44 layoutTestController.notifyDone();
46 document.getElementById('results').innerText = "This test requires DRT";
51 var target = document.getElementById('target');
52 target.style.webkitAnimationName = "bounce";
53 waitForAnimationToStart(target, animationStarted);
57 <body onload="startTest()">
58 <!-- Test for DRT pauseAnimationAtTimeOnElementWithId() API -->
59 <div id="target"></div>
60 <div id="results"></div>