| animation: move 0.25s forwards linear; |
| from { transform: translateX(1000px); } |
| to { transform: translateX(-2000px); } |
| testRunner.waitUntilDone(); |
| window.setTimeout(function() { |
| var mover = document.getElementById('mover'); |
| mover.addEventListener('animationstart', function() { |
| internals.startTrackingLayerFlushes(); |
| mover.addEventListener('animationend', function() { |
| var flushCount = internals.layerFlushCount(); |
| document.getElementById('result').textContent = flushCount ? "Saw layer flushes during animation: PASS" : "No layer flushes during animation: FAIL"; |
| mover.classList.add('animating'); |
| window.addEventListener('load', doTest, false); |
| <div id="mover" class="mover"></div> |
| <div id="result">This test must be run in the test harness.</div> |