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

Side by Side Diff: LayoutTests/transitions/min-max-width-height-transitions.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> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #container { 5 #container {
6 border: 1px solid black; 6 border: 1px solid black;
7 width: 300px; 7 width: 300px;
8 height: 300px; 8 height: 300px;
9 } 9 }
10 10
(...skipping 21 matching lines...) Expand all
32 max-width: 100px; 32 max-width: 100px;
33 max-height: 100px; 33 max-height: 100px;
34 } 34 }
35 35
36 #container.final .maxer { 36 #container.final .maxer {
37 max-width: 50px; 37 max-width: 50px;
38 max-height: 50px; 38 max-height: 50px;
39 } 39 }
40 40
41 </style> 41 </style>
42 <script src="resources/transition-test-helpers.js"></script> 42 <script src="../animations/resources/animation-test-helpers.js"></script>
43 <script type="text/javascript"> 43 <script type="text/javascript">
44 44
45 const expectedValues = [ 45 const expectedValues = [
46 // [time, element-id, property, expected-value, tolerance] 46 // [time, element-id, property, expected-value, tolerance]
47 [0.5, 'box1', 'min-height', 150, 2], 47 [0.5, 'box1', 'min-height', 150, 2],
48 [0.5, 'box1', 'min-width', 150, 2], 48 [0.5, 'box1', 'min-width', 150, 2],
49 [0.5, 'box2', 'max-height', 75, 2], 49 [0.5, 'box2', 'max-height', 75, 2],
50 [0.5, 'box2', 'max-width', 75, 2], 50 [0.5, 'box2', 'max-width', 75, 2],
51 ]; 51 ];
52 52
53 function setupTest() 53 function setupTest()
54 { 54 {
55 document.getElementById('container').className = 'final'; 55 document.getElementById('container').className = 'final';
56 } 56 }
57 57
58 runTransitionTest(expectedValues, setupTest, usePauseAPI); 58 runTransitionTest(expectedValues, setupTest, usePauseAPI);
59 </script> 59 </script>
60 </head> 60 </head>
61 <body> 61 <body>
62 62
63 <div id="container"> 63 <div id="container">
64 <div id="box1" class='minner box'></div> 64 <div id="box1" class='minner box'></div>
65 <div id="box2" class='maxer box'></div> 65 <div id="box2" class='maxer box'></div>
66 </div> 66 </div>
67 67
68 <div id="result"></div> 68 <div id="result"></div>
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW
« no previous file with comments | « LayoutTests/transitions/mask-transitions.html ('k') | LayoutTests/transitions/mismatched-shadow-styles.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698