OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <div id='node' style='background-color: red; height: 100px; transition: widt
h 100ms; width: 100px'></div> |
| 4 `, ''); |
| 5 |
| 6 dp.Animation.enable(); |
| 7 session.evaluate(`node.style.width = '200px';`); |
| 8 |
| 9 var response = await dp.Animation.onceAnimationStarted(); |
| 10 testRunner.log("Animation started"); |
| 11 |
| 12 for (var run = 0; run < 5; run++) { |
| 13 await dp.Animation.seekAnimations({ animations: [ response.params.animation.
id ], currentTime: 0 }); |
| 14 testRunner.log("Animation seeked"); |
| 15 } |
| 16 testRunner.completeTest(); |
| 17 }) |
OLD | NEW |