Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / transitions / transition-end-event-multiple-01.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: width, left, background-color, height, top;
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       ["background-color", "box1", 0.5, false],
21       ["height", "box1", 0.5, false],
22       ["left", "box1", 0.5, false],
23       ["width", "box1", 0.5, false],
24     ];
25     
26     function setupTest()
27     {
28       var box = document.getElementById("box1");
29       box.addEventListener("webkitTransitionEnd", recordTransitionEndEvent, false);
30       box.style.width = "150px";
31       box.style.left = '200px';
32       box.style.backgroundColor = 'red';
33       box.style.height = '80px';
34     }
35     
36     runTransitionTest(expectedEndEvents, setupTest);
37   </script>
38 </head>
39 <body>
40
41 <p>Initiating a 500ms transition on the left, background-color, width and height properties of box1.</p>
42
43 <div id="container">
44   <div id="box1" class="box"></div>
45 </div>
46
47 <div id="result"></div>
48
49 </body>
50 </html>