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..8be61a2e2da586e7c6f6b0fd3a1bfaf55f660265 |
--- /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.animationCanceled"] = onCanceled; |
+ InspectorTest.sendCommand("Animation.enable", {}); |
+ InspectorTest.evaluateInPage("triggerEmptyTransition()", function() {}); |
+ |
+ function onCreated() |
+ { |
+ InspectorTest.log("Animation created"); |
+ } |
+ |
+ function onCanceled() |
+ { |
+ InspectorTest.log("Animation canceled"); |
+ InspectorTest.completeTest(); |
+ } |
+} |
+ |
+</script> |
+</head> |
+<body onload="runTest()"> |
+ <div id="node" style="background-color: red; width: 100px"></div> |
+</body> |
+</html> |