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..6bc0e5aa842b3004ab92647c14d0394f24263965 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-resolve.js |
@@ -0,0 +1,17 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startHTML(` |
+ <div id='node' style='background-color: red; height: 100px'></div> |
+ `, ''); |
+ |
+ dp.Animation.enable(); |
+ session.evaluate(` |
+ window.player = node.animate([{ width: '100px' }, { width: '200px' }], 2000); |
+ `); |
+ |
+ var result = await dp.Animation.onceAnimationStarted(); |
+ testRunner.log('Animation started'); |
+ var response = await dp.Animation.resolveAnimation({ animationId: result.params.animation.id }); |
+ testRunner.log('Remote object:'); |
+ testRunner.log(response.result.remoteObject.className); |
+ testRunner.completeTest(); |
+}) |