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

Side by Side Diff: LayoutTests/transitions/transition-shorthand-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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 #target { 6 #target {
7 position: relative; 7 position: relative;
8 left: 100px; 8 left: 100px;
9 height: 50px; 9 height: 50px;
10 width: 50px; 10 width: 50px;
11 background-color: green; 11 background-color: green;
12 -webkit-transition: left 1s linear 250ms; 12 -webkit-transition: left 1s linear 250ms;
13 } 13 }
14 14
15 #target.moved { 15 #target.moved {
16 left: 200px; 16 left: 200px;
17 } 17 }
18 </style> 18 </style>
19 <script src="resources/transition-test-helpers.js"></script> 19 <script src="../animations/resources/animation-test-helpers.js"></script>
20 <script> 20 <script>
21 const expectedValues = [ 21 const expectedValues = [
22 // [time, element-id, property, expected-value, tolerance] 22 // [time, element-id, property, expected-value, tolerance]
23 [0.5, "target", "left", 125, 4], 23 [0.5, "target", "left", 125, 4],
24 ]; 24 ];
25 25
26 function setupTest() 26 function setupTest()
27 { 27 {
28 document.getElementById("target").className = "moved"; 28 document.getElementById("target").className = "moved";
29 } 29 }
30 30
31 runTransitionTest(expectedValues, setupTest, usePauseAPI); 31 runTransitionTest(expectedValues, setupTest, usePauseAPI);
32 </script> 32 </script>
33 </head> 33 </head>
34 <body> 34 <body>
35 <div id="target"></div> 35 <div id="target"></div>
36 <div id="result"></div> 36 <div id="result"></div>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698