| OLD | NEW | 
|---|
| 1 <html> | 1 <html> | 
| 2 <head> | 2 <head> | 
| 3   <style> | 3   <style> | 
| 4     div { | 4     div { | 
| 5       position: relative; | 5       position: relative; | 
| 6       left: 100px; | 6       left: 100px; | 
| 7       height: 50px; | 7       height: 50px; | 
| 8       width: 50px; | 8       width: 50px; | 
| 9       background-color: green; | 9       background-color: green; | 
| 10       -webkit-transition: left 4s linear 1s; | 10       -webkit-transition: left 4s linear 1s; | 
| 11     } | 11     } | 
| 12 | 12 | 
| 13     .moved { | 13     .moved { | 
| 14       left: 200px; | 14       left: 200px; | 
| 15     } | 15     } | 
| 16    </style> | 16    </style> | 
| 17    <script src="resources/transition-test-helpers.js"></script> | 17    <script src="../animations/resources/animation-test-helpers.js"></script> | 
| 18    <script> | 18    <script> | 
| 19      const expectedValues = [ | 19      const expectedValues = [ | 
| 20        // [time, element-id, property, expected-value, tolerance] | 20        // [time, element-id, property, expected-value, tolerance] | 
| 21        [0.5, "target", "left", 100, 4], | 21        [0.5, "target", "left", 100, 4], | 
| 22      ]; | 22      ]; | 
| 23 | 23 | 
| 24      function setupTest() | 24      function setupTest() | 
| 25      { | 25      { | 
| 26        document.getElementById("target").className = "moved"; | 26        document.getElementById("target").className = "moved"; | 
| 27      } | 27      } | 
| 28 | 28 | 
| 29      runTransitionTest(expectedValues, setupTest, usePauseAPI); | 29      runTransitionTest(expectedValues, setupTest, usePauseAPI); | 
| 30    </script> | 30    </script> | 
| 31 </head> | 31 </head> | 
| 32 <body> | 32 <body> | 
| 33   <h1>Test for transition in delay phase</h1> | 33   <h1>Test for transition in delay phase</h1> | 
| 34 | 34 | 
| 35   <p>This test works only in DumpRenderTree. It uses an API exposed | 35   <p>This test works only in DumpRenderTree. It uses an API exposed | 
| 36     only there to jump to a particular time in a running transition. | 36     only there to jump to a particular time in a running transition. | 
| 37     Tests bug <a href="https://bugs.webkit.org/show_bug.cgi?id=59475">59475</a> | 37     Tests bug <a href="https://bugs.webkit.org/show_bug.cgi?id=59475">59475</a> | 
| 38   </p> | 38   </p> | 
| 39 | 39 | 
| 40   <div id="target"></div> | 40   <div id="target"></div> | 
| 41   <div id="result"></div> | 41   <div id="result"></div> | 
| 42 | 42 | 
| 43 </body> | 43 </body> | 
| 44 </html> | 44 </html> | 
| OLD | NEW | 
|---|