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(` |
| 8 window.player = node.animate([{ width: '100px' }, { width: '200px' }], 2000)
; |
| 9 `); |
| 10 |
| 11 var result = await dp.Animation.onceAnimationStarted(); |
| 12 testRunner.log('Animation started'); |
| 13 var response = await dp.Animation.resolveAnimation({ animationId: result.param
s.animation.id }); |
| 14 testRunner.log('Remote object:'); |
| 15 testRunner.log(response.result.remoteObject.className); |
| 16 testRunner.completeTest(); |
| 17 }) |
OLD | NEW |