| Index: third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.html b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f91d992367e0f5dc5c708af0d45e656e9f3a1166
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/animation/animation-empty-transition-cancel.html
|
| @@ -0,0 +1,41 @@
|
| +<html>
|
| +<head>
|
| +<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
|
| +<script>
|
| +
|
| +function triggerEmptyTransition()
|
| +{
|
| + node.offsetTop;
|
| + node.style.transition = "1s";
|
| + node.offsetTop;
|
| + node.style.width = "200px";
|
| + node.offsetTop;
|
| + node.style.transition = "";
|
| + node.offsetTop;
|
| +}
|
| +
|
| +function test()
|
| +{
|
| + InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
|
| + InspectorTest.eventHandler["Animation.animationCancelled"] = onCancelled;
|
| + InspectorTest.sendCommand("Animation.enable", {});
|
| + InspectorTest.evaluateInPage("triggerEmptyTransition()", function() {});
|
| +
|
| + function onCreated()
|
| + {
|
| + InspectorTest.log("Animation created");
|
| + }
|
| +
|
| + function onCancelled()
|
| + {
|
| + InspectorTest.log("Animation cancelled");
|
| + InspectorTest.completeTest();
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| + <div id="node" style="background-color: red; width: 100px"></div>
|
| +</body>
|
| +</html>
|
|
|