| Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ed77716c745d05dbd6b625cd5c90efbcae7a2f0e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js
|
| @@ -0,0 +1,17 @@
|
| +(async function(testRunner) {
|
| + let {page, session, dp} = await testRunner.startHTML(`
|
| + <div id='node' style='background-color: red; height: 100px; transition: width 100ms; width: 100px'></div>
|
| + `, '');
|
| +
|
| + dp.Animation.enable();
|
| + session.evaluate(`node.style.width = '200px';`);
|
| +
|
| + var response = await dp.Animation.onceAnimationStarted();
|
| + testRunner.log("Animation started");
|
| +
|
| + for (var run = 0; run < 5; run++) {
|
| + await dp.Animation.seekAnimations({ animations: [ response.params.animation.id ], currentTime: 0 });
|
| + testRunner.log("Animation seeked");
|
| + }
|
| + testRunner.completeTest();
|
| +})
|
|
|