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'></div> |
| 4 `, ''); |
| 5 |
| 6 dp.Animation.enable(); |
| 7 session.evaluate(`node.animate([{ width: '100px' }, { width: '200px' }], 2000)
;`); |
| 8 await dp.Animation.onceAnimationCreated(); |
| 9 testRunner.log('Animation created'); |
| 10 await dp.Animation.onceAnimationStarted(); |
| 11 testRunner.log('Animation started'); |
| 12 testRunner.completeTest(); |
| 13 }) |
OLD | NEW |