| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |