OLD | NEW |
(Empty) | |
| 1 (async function() { |
| 2 let {page, session, Protocol} = await InspectorTest.startHTML(` |
| 3 <div id='node' style='background-color: red; height: 100px'></div> |
| 4 `, ''); |
| 5 |
| 6 Protocol.Animation.enable(); |
| 7 session.evaluate(` |
| 8 window.player = node.animate([{ width: '100px' }, { width: '200px' }], 2000)
; |
| 9 `); |
| 10 |
| 11 var result = await Protocol.Animation.onceAnimationStarted(); |
| 12 InspectorTest.log('Animation started'); |
| 13 var response = await Protocol.Animation.resolveAnimation({ animationId: result
.params.animation.id }); |
| 14 InspectorTest.log('Remote object:'); |
| 15 InspectorTest.log(response.result.remoteObject.className); |
| 16 InspectorTest.completeTest(); |
| 17 })(); |
OLD | NEW |