Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: LayoutTests/animations/animation-delay-changed.html

Issue 14556022: Simplify animation testing API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/animations/animation-hit-test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/animation-hit-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698