OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 margin: 0; | 6 margin: 0; |
7 } | 7 } |
8 | 8 |
9 #box1, #box2 { | 9 #box1, #box2 { |
10 position: relative; | 10 position: relative; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 document.querySelector('#box1').classList.add('move1'); | 47 document.querySelector('#box1').classList.add('move1'); |
48 // Start the animation on box2 after 500ms | 48 // Start the animation on box2 after 500ms |
49 setTimeout(function() { document.querySelector('#box2').classList.add('mov
e2'); }, 500); | 49 setTimeout(function() { document.querySelector('#box2').classList.add('mov
e2'); }, 500); |
50 | 50 |
51 const expectedValues = [ | 51 const expectedValues = [ |
52 // [animation-name, time, element-id, property, expected-value, toleranc
e] | 52 // [animation-name, time, element-id, property, expected-value, toleranc
e] |
53 [null, 1.0, "box1", "left", 200, 10], | 53 [null, 1.0, "box1", "left", 200, 10], |
54 [null, 1.0, "box2", "left", 100, 10], | 54 [null, 1.0, "box2", "left", 100, 10], |
55 ]; | 55 ]; |
56 | 56 |
57 runAnimationTest(expectedValues); | 57 runAnimationTest(expectedValues, undefined, undefined, 'do-not-use-pause-a
pi'); |
58 } | 58 } |
59 </script> | 59 </script> |
60 </head> | 60 </head> |
61 <body> | 61 <body> |
62 <div id="box1">starts after 1s</div> | 62 <div id="box1">starts after 1s</div> |
63 <div id="box2">starts after 1.5s</div> | 63 <div id="box2">starts after 1.5s</div> |
64 <div id="result"></div> | 64 <div id="result"></div> |
65 </div> | 65 </div> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |