OLD | NEW |
(Empty) | |
| 1 (async function() { |
| 2 let {page, session, Protocol} = await InspectorTest.startHTML(` |
| 3 <div id='node' style='background-color: red; width: 100px'></div> |
| 4 `, ''); |
| 5 |
| 6 Protocol.Animation.onAnimationCreated(() => InspectorTest.log('Animation creat
ed')); |
| 7 Protocol.Animation.onAnimationCanceled(() => InspectorTest.log('Animation canc
eled')); |
| 8 Protocol.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 InspectorTest.completeTest(); |
| 19 })(); |
OLD | NEW |