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

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

Issue 1422713012: Devtools Animations: Listen to all animation play state changes (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-start.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-start.html
similarity index 67%
copy from third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html
copy to third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-start.html
index e11053f9dedebe172a3a63e70ba6abd3637f626a..742078b75c021dc1ef3df9ed5b176193c0a23e6a 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-cancel.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-create-start.html
@@ -3,22 +3,14 @@
<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
<script>
-var player;
-
function startAnimation()
{
- player = node.animate([{ width: "100px" }, { width: "200px" }], 2000);
-}
-
-function cancelAnimation()
-{
- player.cancel();
+ node.animate([{ width: "100px" }, { width: "200px" }], 2000);
}
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,12 +23,6 @@ function test()
function onStarted()
{
InspectorTest.log("Animation started");
- InspectorTest.evaluateInPage("cancelAnimation()", function() {});
- }
-
- function onCanceled()
- {
- InspectorTest.log("Animation canceled");
InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698