Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: unified Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..f7d001817690bd4b8e4e899d6b09643d4599f62b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-css-replay.js
@@ -0,0 +1,17 @@
+(async function() {
+ let {page, session, Protocol} = await InspectorTest.startHTML(`
+ <div id='node' style='background-color: red; height: 100px; transition: width 100ms; width: 100px'></div>
+ `, '');
+
+ Protocol.Animation.enable();
+ session.evaluate(`node.style.width = '200px';`);
+
+ var response = await Protocol.Animation.onceAnimationStarted();
+ InspectorTest.log("Animation started");
+
+ for (var run = 0; run < 5; run++) {
+ await Protocol.Animation.seekAnimations({ animations: [ response.params.animation.id ], currentTime: 0 });
+ InspectorTest.log("Animation seeked");
+ }
+ InspectorTest.completeTest();
+})();

Powered by Google App Engine
This is Rietveld 408576698