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

Side by Side Diff: LayoutTests/transitions/cubic-bezier-overflow-shadow.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 <title>cubic-bezier value overflow: Shadows</title> 4 <title>cubic-bezier value overflow: Shadows</title>
5 <style> 5 <style>
6 .box { 6 .box {
7 position: relative; 7 position: relative;
8 left: 0; 8 left: 0;
9 height: 100px; 9 height: 100px;
10 width: 100px; 10 width: 100px;
11 margin: 10px; 11 margin: 10px;
12 background-color: blue; 12 background-color: blue;
13 box-shadow: 5px -5px 5px 5px #404040; 13 box-shadow: 5px -5px 5px 5px #404040;
14 -webkit-transition: box-shadow 1s linear; 14 -webkit-transition: box-shadow 1s linear;
15 } 15 }
16 .animating > .box { 16 .animating > .box {
17 box-shadow: -5px 20px 15px 15px #c0c0c0; 17 box-shadow: -5px 20px 15px 15px #c0c0c0;
18 } 18 }
19 </style> 19 </style>
20 <script src="resources/transition-test-helpers.js"></script> 20 <script src="../animations/resources/animation-test-helpers.js"></script>
21 <script> 21 <script>
22 const expectedValues = [ 22 const expectedValues = [
23 // [time, element-id, property, expected-value, tolerance] 23 // [time, element-id, property, expected-value, tolerance]
24 [0.50, "box1", "box-shadow", [-7, 25], 5], 24 [0.50, "box1", "box-shadow", [-7, 25], 5],
25 [0.95, "box1", "box-shadow", [-6, 22], 5], 25 [0.95, "box1", "box-shadow", [-6, 22], 5],
26 [0.10, "box2", "box-shadow", [7, -9], 5], 26 [0.10, "box2", "box-shadow", [7, -9], 5],
27 [0.50, "box2", "box-shadow", [2, 4], 5], 27 [0.50, "box2", "box-shadow", [2, 4], 5],
28 [0.95, "box2", "box-shadow", [-6, 22], 5], 28 [0.95, "box2", "box-shadow", [-6, 22], 5],
29 [0.10, "box3", "box-shadow", [9, -16], 5], 29 [0.10, "box3", "box-shadow", [9, -16], 5],
30 [0.50, "box3", "box-shadow", [16, -32], 5], 30 [0.50, "box3", "box-shadow", [16, -32], 5],
(...skipping 12 matching lines...) Expand all
43 <body> 43 <body>
44 <div id="container"> 44 <div id="container">
45 <div class="box" id="box1" style="-webkit-transition-timing-function: cubi c-bezier(0.3, 1.5, 0.8, 1.5);"></div> 45 <div class="box" id="box1" style="-webkit-transition-timing-function: cubi c-bezier(0.3, 1.5, 0.8, 1.5);"></div>
46 <div class="box" id="box2" style="-webkit-transition-timing-function: cubi c-bezier(0.4, -0.8, 0.7, 1.7);"></div> 46 <div class="box" id="box2" style="-webkit-transition-timing-function: cubi c-bezier(0.4, -0.8, 0.7, 1.7);"></div>
47 <div class="box" id="box3" style="-webkit-transition-timing-function: cubi c-bezier(0.7, -2, 1, -1.5);"></div> 47 <div class="box" id="box3" style="-webkit-transition-timing-function: cubi c-bezier(0.7, -2, 1, -1.5);"></div>
48 <div class="box" id="box4" style="-webkit-transition-timing-function: cubi c-bezier(0, 4, 1, -3);"></div> 48 <div class="box" id="box4" style="-webkit-transition-timing-function: cubi c-bezier(0, 4, 1, -3);"></div>
49 </div> 49 </div>
50 <div id="result"></div> 50 <div id="result"></div>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698