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

Side by Side Diff: LayoutTests/transitions/negative-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 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .square { 5 .square {
6 position: absolute; 6 position: absolute;
7 background: blue; 7 background: blue;
8 width: 20px; 8 width: 20px;
9 height: 20px; 9 height: 20px;
10 -webkit-transition-timing-function: linear; 10 -webkit-transition-timing-function: linear;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 #square4 { 48 #square4 {
49 top: 140px; 49 top: 140px;
50 left: 0px; 50 left: 0px;
51 -webkit-transition-property: -webkit-transform; 51 -webkit-transition-property: -webkit-transform;
52 -webkit-transition-duration: 2s; 52 -webkit-transition-duration: 2s;
53 } 53 }
54 </style> 54 </style>
55 55
56 <script src="resources/transition-test-helpers.js"></script> 56 <script src="../animations/resources/animation-test-helpers.js"></script>
57 57
58 <script> 58 <script>
59 // The delay of square1 is negative so square1 should be in ahead of square2 . 59 // The delay of square1 is negative so square1 should be in ahead of square2 .
60 const expectedValues = [ 60 const expectedValues = [
61 // [time, element-id, property, expected-value, tolerance] 61 // [time, element-id, property, expected-value, tolerance]
62 [0, "square1", "left", 300, 15], 62 [0, "square1", "left", 300, 15],
63 [0, "square2", "left", 0, 15], 63 [0, "square2", "left", 0, 15],
64 [0.5, "square1", "left", 450, 15], 64 [0.5, "square1", "left", 450, 15],
65 [0.5, "square2", "left", 150, 15], 65 [0.5, "square2", "left", 150, 15],
66 [0, "square3", "-webkit-transform.4", 300, 20], 66 [0, "square3", "-webkit-transform.4", 300, 20],
(...skipping 19 matching lines...) Expand all
86 <div class="square" id="square1"></div> 86 <div class="square" id="square1"></div>
87 <div class="square" id="square2"></div> 87 <div class="square" id="square2"></div>
88 <div class="square" id="square3"></div> 88 <div class="square" id="square3"></div>
89 <div class="square" id="square4"></div> 89 <div class="square" id="square4"></div>
90 90
91 <div id="result"> 91 <div id="result">
92 </div> 92 </div>
93 93
94 </body> 94 </body>
95 </html> 95 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/multiple-shadow-transitions-expected.txt ('k') | LayoutTests/transitions/negative-delay-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698