OLD | NEW |
(Empty) | |
| 1 (async function() { |
| 2 let {page, session, Protocol} = await InspectorTest.startHTML(` |
| 3 <style type='text/css'> |
| 4 #node.anim { |
| 5 animation: anim 300ms ease-in-out paused; |
| 6 } |
| 7 |
| 8 @keyframes anim { |
| 9 from { |
| 10 width: 100px; |
| 11 } |
| 12 to { |
| 13 width: 200px; |
| 14 } |
| 15 } |
| 16 </style> |
| 17 <div id='node' style='background-color: red; width: 100px'></div> |
| 18 `, ''); |
| 19 |
| 20 |
| 21 Protocol.Animation.enable(); |
| 22 session.evaluate('node.classList.add("anim");'); |
| 23 await Protocol.Animation.onceAnimationCreated(); |
| 24 InspectorTest.log('Animation created'); |
| 25 await Protocol.Animation.onceAnimationCanceled(); |
| 26 InspectorTest.log('Animation canceled'); |
| 27 InspectorTest.completeTest(); |
| 28 })(); |
OLD | NEW |