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