OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <div id='node' style='background-color: red; width: 100px'></div> |
| 4 `, ''); |
| 5 |
| 6 dp.Animation.onAnimationCreated(() => testRunner.log('Animation created')); |
| 7 dp.Animation.onAnimationCanceled(() => testRunner.log('Animation canceled')); |
| 8 dp.Animation.enable(); |
| 9 await session.evaluate(` |
| 10 node.offsetTop; |
| 11 node.style.transition = "1s"; |
| 12 node.offsetTop; |
| 13 node.style.width = "200px"; |
| 14 node.offsetTop; |
| 15 node.style.transition = ""; |
| 16 node.offsetTop; |
| 17 `); |
| 18 testRunner.completeTest(); |
| 19 }) |
OLD | NEW |