| Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-pause-infinite.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-pause-infinite.html b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-pause-infinite.html
|
| deleted file mode 100644
|
| index e0273487254f1059d72148ef2361bad0540853ef..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-pause-infinite.html
|
| +++ /dev/null
|
| @@ -1,60 +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: 10000, iterations: Infinity });
|
| -}
|
| -
|
| -function getWidth()
|
| -{
|
| - return node.offsetWidth;
|
| -}
|
| -
|
| -function rafWidth()
|
| -{
|
| - var callback;
|
| - var promise = new Promise((fulfill) => callback = fulfill);
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(() => callback(node.offsetWidth));
|
| - return promise;
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.eventHandler["Animation.animationStarted"] = onStarted;
|
| - InspectorTest.sendCommand("Animation.enable", {});
|
| - InspectorTest.evaluateInPage("startAnimation()", function() {});
|
| -
|
| - function onStarted(response)
|
| - {
|
| - InspectorTest.log("Animation started");
|
| - InspectorTest.sendCommand("Animation.setPaused", { animations: [ response.params.animation.id ], paused: true }, animPaused);
|
| - }
|
| -
|
| - function animPaused()
|
| - {
|
| - InspectorTest.evaluateInPage("getWidth()", saveWidth);
|
| - }
|
| -
|
| - function saveWidth(nodeWidth)
|
| - {
|
| - InspectorTest.evaluateInPageAsync("rafWidth()")
|
| - .then(function(result) {
|
| - InspectorTest.log(result === nodeWidth);
|
| - InspectorTest.completeTest();
|
| - });
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| - Tests that the animation is correctly paused.
|
| - <div id="node" style="background-color: red; height: 100px"></div>
|
| -</body>
|
| -</html>
|
|
|