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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html

Issue 1433623002: Devtools Animations: Don't wait for empty transitions to start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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-create-cancel.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html
index de25fc5a11e9c023738fbb58d3cd490db2c25481..58e6cc01aa16812f7a8f3ecdf4cb42bc287a11b7 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html
@@ -15,10 +15,10 @@ function cancelAnimation()
player.cancel();
}
-
function test()
{
InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
+ InspectorTest.eventHandler["Animation.animationCancelled"] = onCancelled;
InspectorTest.eventHandler["Animation.animationStarted"] = onStarted;
InspectorTest.sendCommand("Animation.enable", {});
InspectorTest.evaluateInPage("startAnimation()", function() {});
@@ -31,6 +31,12 @@ function test()
function onStarted()
{
InspectorTest.log("Animation started");
+ InspectorTest.evaluateInPage("cancelAnimation()", function() {});
+ }
+
+ function onCancelled()
+ {
+ InspectorTest.log("Animation cancelled");
InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698