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

Side by Side Diff: LayoutTests/transitions/delay.html

Issue 15738009: Beat the transition tests with a sanity stick. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass presubmit. 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 #target { 4 #target {
5 position: relative; 5 position: relative;
6 left: 0px; 6 left: 0px;
7 height: 50px; 7 height: 50px;
8 width: 50px; 8 width: 50px;
9 background-color: green; 9 background-color: green;
10 -webkit-transition: left 4s linear 1s; 10 -webkit-transition: left 4s linear 1s;
11 } 11 }
12 12
13 #target.moved { 13 #target.moved {
14 left: 400px; 14 left: 400px;
15 } 15 }
16 </style> 16 </style>
17 <script src="resources/transition-test-helpers.js"></script> 17 <script src="../animations/resources/animation-test-helpers.js"></script>
18 <script> 18 <script>
19 const expectedValues = [ 19 const expectedValues = [
20 // [time, element-id, property, expected-value, tolerance] 20 // [time, element-id, property, expected-value, tolerance]
21 [2, "target", "left", 100, 4], 21 [2, "target", "left", 100, 4],
22 ]; 22 ];
23 23
24 function setupTest() 24 function setupTest()
25 { 25 {
26 document.getElementById("target").className = "moved"; 26 document.getElementById("target").className = "moved";
27 } 27 }
28 28
29 runTransitionTest(expectedValues, setupTest, usePauseAPI); 29 runTransitionTest(expectedValues, setupTest, usePauseAPI);
30 </script> 30 </script>
31 </head> 31 </head>
32 <body> 32 <body>
33 <div id="target"></div> 33 <div id="target"></div>
34 <div id="result"></div> 34 <div id="result"></div>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/default-timing-function-expected.txt ('k') | LayoutTests/transitions/flex-transitions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698