Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT...
[WebKit-https.git] / LayoutTests / transitions / transition-end-event-window.html
1 <html>
2 <head>
3   <style>
4     .box {
5       position: relative;
6       left: 0;
7       height: 100px;
8       width: 100px;
9       margin: 10px;
10       background-color: blue;
11       -webkit-transition-property: left;
12       -webkit-transition-duration: 0.5s;
13     }
14   </style>
15   <script src="transition-end-event-helpers.js"></script>
16   <script type="text/javascript">
17     
18     var expectedEndEvents = [
19       // [property-name, element-id, elapsed-time, listen]
20       ["left", "box1", 0.5, false]
21     ];
22     
23     function setupTest()
24     {
25       window.onwebkittransitionend = recordTransitionEndEvent;
26       
27       var box = document.getElementById('box1');
28       box.style.left = '200px';
29     }
30     
31     runTransitionTest(expectedEndEvents, setupTest);
32   </script>
33 </head>
34 <body>
35
36 <p>Initiating a 500ms transition on the left property of box1 and catching it on the window.</p>
37
38 <div id="container">
39   <div id="box1" class="box"></div>
40 </div>
41
42 <div id="result"></div>
43
44 </body>
45 </html>