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..e11053f9dedebe172a3a63e70ba6abd3637f626a 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.animationCanceled"] = onCanceled; |
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 onCanceled() |
+ { |
+ InspectorTest.log("Animation canceled"); |
InspectorTest.completeTest(); |
} |
} |