| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   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       background-color: blue; |   9       background-color: blue; | 
|  10       -webkit-transform: translateX(0px); |  10       -webkit-transform: translateX(0px); | 
|  11       -webkit-transition-duration: 1s; |  11       -webkit-transition-duration: 1s; | 
|  12       -webkit-transition-timing-function: steps(3, end); |  12       -webkit-transition-timing-function: steps(3, end); | 
|  13       -webkit-transition-property: -webkit-transform; |  13       -webkit-transition-property: -webkit-transform; | 
|  14     } |  14     } | 
|  15   </style> |  15   </style> | 
|  16   <script src="resources/transition-test-helpers.js"></script> |  16   <script src="../animations/resources/animation-test-helpers.js"></script> | 
|  17   <script type="text/javascript"> |  17   <script type="text/javascript"> | 
|  18      |  18      | 
|  19     const expectedValues = [ |  19     const expectedValues = [ | 
|  20       // [time, element-id, property, expected-value, tolerance] |  20       // [time, element-id, property, expected-value, tolerance] | 
|  21       [0.25, "box", "-webkit-transform.4", 0, 5], |  21       [0.25, "box", "-webkit-transform.4", 0, 5], | 
|  22       [0.5, "box", "-webkit-transform.4", 66, 5], |  22       [0.5, "box", "-webkit-transform.4", 66, 5], | 
|  23       [0.75, "box", "-webkit-transform.4", 133, 5], |  23       [0.75, "box", "-webkit-transform.4", 133, 5], | 
|  24     ]; |  24     ]; | 
|  25      |  25      | 
|  26     function setupTest() |  26     function setupTest() | 
|  27     { |  27     { | 
|  28       var box = document.getElementById('box'); |  28       var box = document.getElementById('box'); | 
|  29       box.style.webkitTransform = 'translateX(200px)'; |  29       box.style.webkitTransform = 'translateX(200px)'; | 
|  30     } |  30     } | 
|  31      |  31      | 
|  32     runTransitionTest(expectedValues, setupTest, usePauseAPI); |  32     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
|  33   </script> |  33   </script> | 
|  34 </head> |  34 </head> | 
|  35 <body> |  35 <body> | 
|  36  |  36  | 
|  37 <p> |  37 <p> | 
|  38 The box should move horizontally 200px over 1s, in 3 equal increments. |  38 The box should move horizontally 200px over 1s, in 3 equal increments. | 
|  39 </p> |  39 </p> | 
|  40 <div id="box"> |  40 <div id="box"> | 
|  41 </div> |  41 </div> | 
|  42 <div id="result"> |  42 <div id="result"> | 
|  43 </div> |  43 </div> | 
|  44 </body> |  44 </body> | 
|  45 </html> |  45 </html> | 
| OLD | NEW |