| <!-- webkit-test-runner [ enablePageCache=true ] --> |
| @-webkit-keyframes bounce { |
| -webkit-transform: translate3d(0,0,0); |
| -webkit-transform: translate3d(200px,0,0); |
| -webkit-animation-name: bounce; |
| -webkit-animation-duration: 80ms; |
| -webkit-animation-iteration-count: infinite; |
| var hasNavigated = false; |
| function sawIteration(event) { |
| document.getElementById("results").innerText = "PASS: Saw iteration after navigation"; |
| var animator = document.getElementById("animator"); |
| animator.addEventListener("webkitAnimationIteration", sawIteration, false); |
| window.location.href = "resources/page-cache-helper.html"; |
| window.testRunner.dumpAsText(); |
| window.testRunner.waitUntilDone(); |
| window.addEventListener("load", startTest, false); |
| This tests that animations continue when restored from the page cache. |
| <div id="animator"></div> |