| <title>Pause and resume animation should not crash</title> |
| <style type="text/css" media="screen"> |
| -webkit-animation-duration: 2s; |
| -webkit-animation-direction: alternate; |
| -webkit-animation-iteration-count: infinite; |
| @-webkit-keyframes anim { |
| from { -webkit-transform: matrix3d(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1); } |
| to { -webkit-transform: matrix3d(1,0,0,0, 0,1,0,0, 0,0,1,0, 400,0,0,1); } |
| <script type="text/javascript" charset="utf-8"> |
| testRunner.waitUntilDone(); |
| function animationStarted() |
| document.getElementById('box1').style.webkitAnimationPlayState = "paused"; |
| document.getElementById('box1').style.webkitAnimationPlayState = "running"; |
| document.getElementById('results').innerHTML = 'Did not crash, so PASSED'; |
| document.getElementById('box1').addEventListener('webkitAnimationStart', animationStarted); |
| document.getElementById('box1').style.webkitAnimationName = "anim"; |
| window.addEventListener('load', startTest, false); |
| <p>Tests pause and resume animation. Should not crash. (https://bugs.webkit.org/show_bug.cgi?id=67510)</p> |
| <div id="box1" class="box"></div> |