| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 | 2 | 
| 3 <html> | 3 <html> | 
| 4 <head> | 4 <head> | 
| 5   <style> | 5   <style> | 
| 6     .container { | 6     .container { | 
| 7       position: relative; | 7       position: relative; | 
| 8     } | 8     } | 
| 9 | 9 | 
| 10     .box { | 10     .box { | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 32     } | 32     } | 
| 33 | 33 | 
| 34     #indicator { | 34     #indicator { | 
| 35       position: absolute; | 35       position: absolute; | 
| 36       left: 322px; | 36       left: 322px; | 
| 37       height: 200px; | 37       height: 200px; | 
| 38       background-color: red; | 38       background-color: red; | 
| 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> | 43   <script> | 
| 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, 'box', 'left', 322, 5], | 47       [0.5, 'box', 'left', 322, 5], | 
| 48       [0.5, 'box2', '-webkit-transform.4', 322, 5], | 48       [0.5, 'box2', '-webkit-transform.4', 322, 5], | 
| 49     ]; | 49     ]; | 
| 50 | 50 | 
| 51     function setupTest() | 51     function setupTest() | 
| 52     { | 52     { | 
| 53       document.getElementById('box').className = 'box final'; | 53       document.getElementById('box').className = 'box final'; | 
| 54       document.getElementById('box2').className = 'box final'; | 54       document.getElementById('box2').className = 'box final'; | 
| 55     } | 55     } | 
| 56 | 56 | 
| 57     var doPixelTest = true; | 57     runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
| 58     runTransitionTest(expectedValues, setupTest, usePauseAPI, doPixelTest); |  | 
| 59   </script> | 58   </script> | 
| 60 </head> | 59 </head> | 
| 61 <body> | 60 <body> | 
| 62 | 61 | 
| 63   <!-- The pixel result should show a green bar, with no red visible. --> | 62   <!-- The pixel result should show a green bar, with no red visible. --> | 
| 64   <div class="container"> | 63   <div class="container"> | 
| 65     <div id="indicator" class="box"></div> | 64     <div id="indicator" class="box"></div> | 
| 66 | 65 | 
| 67     <div id="box" class="box"></div> | 66     <div id="box" class="box"></div> | 
| 68     <div id="box2" class="box"></div> | 67     <div id="box2" class="box"></div> | 
| 69   </div> | 68   </div> | 
| 70 | 69 | 
| 71   <div id="result"></div> | 70   <div id="result"></div> | 
| 72 | 71 | 
| 73 </body> | 72 </body> | 
| 74 </html> | 73 </html> | 
| OLD | NEW | 
|---|