Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT...
[WebKit-https.git] / LayoutTests / transitions / cubic-bezier-overflow-length.html
1 <!doctype html>
2 <html>
3   <head>
4     <title>cubic-bezier value overflow: Lengths</title>
5     <style>
6       .box {
7         position: relative;
8         left: 0;
9         height: 100px;
10         width: 100px;
11         margin: 10px;
12         background-color: blue;
13         -webkit-transition: left 1s linear;
14       }
15       .animating > .box {
16         left: 400px;
17       }
18     </style>
19     <script src="resources/transition-test-helpers.js"></script>
20     <script>
21       const expectedValues = [
22         // [time, element-id, property, expected-value, tolerance]
23         [0.50, "box1", "left", 488, 4],
24         [0.95, "box1", "left", 440, 4],
25         [0.10, "box2", "left", -55, 4],
26         [0.50, "box2", "left", 145, 4],
27         [0.95, "box2", "left", 432, 4],
28         [0.10, "box3", "left", -106, 4],
29         [0.50, "box3", "left", -441, 4],
30         [0.15, "box4", "left", 513, 4],
31         [0.50, "box4", "left", 200, 4],
32         [0.80, "box4", "left", -98, 4],
33       ];
34
35       function setupTest() {
36         document.getElementById('container').className = 'animating';
37       }
38
39       runTransitionTest(expectedValues, setupTest, usePauseAPI);
40     </script>
41   </head>
42   <body>
43     <div id="container">
44       <div class="box" id="box1" style="-webkit-transition-timing-function: cubic-bezier(0.3, 1.5, 0.8, 1.5);"></div>
45       <div class="box" id="box2" style="-webkit-transition-timing-function: cubic-bezier(0.4, -0.8, 0.7, 1.7);"></div>
46       <div class="box" id="box3" style="-webkit-transition-timing-function: cubic-bezier(0.7, -2, 1, -1.5);"></div>
47       <div class="box" id="box4" style="-webkit-transition-timing-function: cubic-bezier(0, 4, 1, -3);"></div>
48     </div>
49     <div id="result"></div>
50   </body>
51 </html>