blob: 8be61a2e2da586e7c6f6b0fd3a1bfaf55f660265 [file] [log] [blame]
<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>