| Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d39a9402091440248e08eb4da5f3f2a587f188c9
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-zero-duration.js
|
| @@ -0,0 +1,27 @@
|
| +(async function(testRunner) {
|
| + let {page, session, dp} = await testRunner.startHTML(`
|
| + <style type='text/css'>
|
| + #node.anim {
|
| + animation: anim 0 ease-in-out;
|
| + }
|
| +
|
| + @keyframes anim {
|
| + from {
|
| + width: 100px;
|
| + }
|
| + to {
|
| + width: 200px;
|
| + }
|
| + }
|
| + </style>
|
| + <div id='node' style='background-color: red; width: 100px'></div>
|
| + `, '');
|
| +
|
| + dp.Animation.enable();
|
| + session.evaluate('node.classList.add("anim")');
|
| + await dp.Animation.onceAnimationCreated();
|
| + testRunner.log('Animation created');
|
| + await dp.Animation.onceAnimationStarted();
|
| + testRunner.log('Animation started');
|
| + testRunner.completeTest();
|
| +})
|
|
|