| OLD | NEW | 
|---|
| 1 <!DOCTYPE> | 1 <!DOCTYPE> | 
| 2 | 2 | 
| 3 <html> | 3 <html> | 
| 4 <head> | 4 <head> | 
| 5   <style> | 5   <style> | 
| 6     .box { | 6     .box { | 
| 7         height: 100px; | 7         height: 100px; | 
| 8         width: 100px; | 8         width: 100px; | 
| 9         margin: 10px; | 9         margin: 10px; | 
| 10         background-color: white; | 10         background-color: white; | 
| 11         -webkit-transition-property: width; | 11         -webkit-transition-property: width; | 
| 12     } | 12     } | 
| 13 | 13 | 
| 14     .box { | 14     .box { | 
| 15         -webkit-transition: 2s; | 15         -webkit-transition: 2s; | 
| 16     } | 16     } | 
| 17 | 17 | 
| 18     #box.final { | 18     #box.final { | 
| 19         background-color: black; | 19         background-color: black; | 
| 20     } | 20     } | 
| 21 | 21 | 
| 22   </style> | 22   </style> | 
| 23   <script src="resources/transition-test-helpers.js"></script> | 23   <script src="../animations/resources/animation-test-helpers.js"></script> | 
| 24   <script type="text/javascript"> | 24   <script type="text/javascript"> | 
| 25 | 25 | 
| 26     const expectedValues = [ | 26     const expectedValues = [ | 
| 27       // [time, element-id, property, expected-value, tolerance] | 27       // [time, element-id, property, expected-value, tolerance] | 
| 28       [0.5, 'box', 'background-color', [153, 153, 153], 4], | 28       [0.5, 'box', 'background-color', [153, 153, 153], 4], | 
| 29     ]; | 29     ]; | 
| 30 | 30 | 
| 31     function setupTest() | 31     function setupTest() | 
| 32     { | 32     { | 
| 33       document.getElementById('box').className = 'box final'; | 33       document.getElementById('box').className = 'box final'; | 
| 34     } | 34     } | 
| 35 | 35 | 
| 36     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 36     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
| 37   </script> | 37   </script> | 
| 38 </head> | 38 </head> | 
| 39 <body> | 39 <body> | 
| 40 | 40 | 
| 41   <div id="box" class="box"></div> | 41   <div id="box" class="box"></div> | 
| 42 | 42 | 
| 43   <div id="result"> | 43   <div id="result"> | 
| 44   </div> | 44   </div> | 
| 45 | 45 | 
| 46 </body> | 46 </body> | 
| 47 </html> | 47 </html> | 
| OLD | NEW | 
|---|