Use testRunner instead of layoutTestController in animations tests
[WebKit-https.git] / LayoutTests / animations / animation-on-inline-crash.html
1 <style>
2     .box {
3       position: relative; 
4       -webkit-animation-delay: 5ms;
5       -webkit-animation-name: anim;
6     }
7     @-webkit-keyframes anim {
8       from { -webkit-transform: translateX(10px); }
9     }
10 </style>
11 <script type="text/javascript" charset="utf-8">
12     if (window.testRunner) {
13         testRunner.dumpAsText();
14         testRunner.waitUntilDone();
15     }
16     
17     function waitForAnimation()
18     {
19         window.setTimeout(function() {
20             if (window.testRunner)
21                 testRunner.notifyDone();
22         }, 50);
23     }
24     window.addEventListener('load', waitForAnimation, false);
25 </script>
26 <p>Test passes if it does not crash.</p>
27 <span class="box">Hello world</span>