| Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-resolve.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-resolve.js b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-resolve.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0ca9ca30b7fc85e2d26e6e947bff8872a99b995
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-resolve.js
|
| @@ -0,0 +1,17 @@
|
| +(async function() {
|
| + let {page, session, Protocol} = await InspectorTest.startHTML(`
|
| + <div id='node' style='background-color: red; height: 100px'></div>
|
| + `, '');
|
| +
|
| + Protocol.Animation.enable();
|
| + session.evaluate(`
|
| + window.player = node.animate([{ width: '100px' }, { width: '200px' }], 2000);
|
| + `);
|
| +
|
| + var result = await Protocol.Animation.onceAnimationStarted();
|
| + InspectorTest.log('Animation started');
|
| + var response = await Protocol.Animation.resolveAnimation({ animationId: result.params.animation.id });
|
| + InspectorTest.log('Remote object:');
|
| + InspectorTest.log(response.result.remoteObject.className);
|
| + InspectorTest.completeTest();
|
| +})();
|
|
|