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

Side by Side Diff: LayoutTests/transitions/zero-duration-with-non-zero-delay-start.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 top: 100px; 8 top: 100px;
9 left: 100px; 9 left: 100px;
10 width: 100px; 10 width: 100px;
11 height: 100px; 11 height: 100px;
12 background-color: blue; 12 background-color: blue;
13 -webkit-transition-property: left; 13 -webkit-transition-property: left;
14 -webkit-transition-duration: 0s; 14 -webkit-transition-duration: 0s;
15 -webkit-transition-delay: 0.5s; 15 -webkit-transition-delay: 0.5s;
16 } 16 }
17 17
18 #target.moved { 18 #target.moved {
19 left: 200px; 19 left: 200px;
20 } 20 }
21 </style> 21 </style>
22 <script src="resources/transition-test-helpers.js"></script> 22 <script src="../animations/resources/animation-test-helpers.js"></script>
23 <script> 23 <script>
24 const expectedValues = [ 24 const expectedValues = [
25 // [time, element-id, property, expected-value, tolerance] 25 // [time, element-id, property, expected-value, tolerance]
26 [1, "target", "left", 200, 4], 26 [1, "target", "left", 200, 4],
27 ]; 27 ];
28 28
29 function setupTest() 29 function setupTest()
30 { 30 {
31 document.getElementById('target').className = 'moved'; 31 document.getElementById('target').className = 'moved';
32 } 32 }
33 33
34 // Pause API isn't happy pausing during delay yet. 34 // Pause API isn't happy pausing during delay yet.
35 // https://bugs.webkit.org/show_bug.cgi?id=59475 35 // https://bugs.webkit.org/show_bug.cgi?id=59475
36 runTransitionTest(expectedValues, setupTest, dontUsePauseAPI); 36 runTransitionTest(expectedValues, setupTest, dontUsePauseAPI);
37 </script> 37 </script>
38 </head> 38 </head>
39 <body> 39 <body>
40 40
41 <div id="target"></div> 41 <div id="target"></div>
42 <div id="result"></div> 42 <div id="result"></div>
43 43
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698