Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-release.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-release.html b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-release.html |
deleted file mode 100644 |
index bebdab05602625bed673a686a1232723a4c24f72..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-release.html |
+++ /dev/null |
@@ -1,65 +0,0 @@ |
-<html> |
-<head> |
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> |
-<script> |
- |
-var animation; |
- |
-function startAnimation() |
-{ |
- animation = node.animate([{ width: "100px" }, { width: "2000px" }], { duration: 0, fill: "forwards" }); |
-} |
- |
-function cancelAnimation() |
-{ |
- animation.cancel(); |
-} |
- |
-function getWidth() |
-{ |
- return node.offsetWidth; |
-} |
- |
-function test() |
-{ |
- InspectorTest.eventHandler["Animation.animationStarted"] = onStarted; |
- InspectorTest.sendCommand("Animation.enable", {}); |
- InspectorTest.evaluateInPage("startAnimation()", function() {}); |
- |
- function onStarted(response) |
- { |
- InspectorTest.log("Animation started"); |
- InspectorTest.evaluateInPage("getWidth()", pause.bind(null, response.params.animation.id)); |
- } |
- |
- function pause(id, width) |
- { |
- InspectorTest.log("Box is animating: " + (width != 100).toString()); |
- InspectorTest.sendCommand("Animation.setPaused", { animations: [ id ], paused: true }); |
- InspectorTest.evaluateInPage("cancelAnimation()", function() {}); |
- InspectorTest.evaluateInPage("getWidth()", release.bind(null, id)); |
- } |
- |
- function release(id, width) |
- { |
- InspectorTest.log("Animation paused"); |
- InspectorTest.log("Box is animating: " + (width != 100).toString()); |
- InspectorTest.sendCommand("Animation.releaseAnimations", { animations: [ id ] }); |
- InspectorTest.evaluateInPage("getWidth()", released); |
- } |
- |
- function released(width) |
- { |
- InspectorTest.log("Animation released"); |
- InspectorTest.log("Box is animating: " + (width != 100).toString()); |
- InspectorTest.completeTest(); |
- } |
-} |
- |
-</script> |
-</head> |
-<body onload="runTest()"> |
- Tests that the animation is correctly paused. |
- <div id="node" style="background-color: red; width: 100px"></div> |
-</body> |
-</html> |