OLD | NEW |
(Empty) | |
| 1 (async function(testRunner) { |
| 2 let {page, session, dp} = await testRunner.startHTML(` |
| 3 <style type='text/css'> |
| 4 #node.anim { |
| 5 animation: anim 0 ease-in-out; |
| 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 dp.Animation.enable(); |
| 21 session.evaluate('node.classList.add("anim")'); |
| 22 await dp.Animation.onceAnimationCreated(); |
| 23 testRunner.log('Animation created'); |
| 24 await dp.Animation.onceAnimationStarted(); |
| 25 testRunner.log('Animation started'); |
| 26 testRunner.completeTest(); |
| 27 }) |
OLD | NEW |