blob: 742078b75c021dc1ef3df9ed5b176193c0a23e6a [file] [log] [blame]
<html>
<head>
<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
<script>
function startAnimation()
{
node.animate([{ width: "100px" }, { width: "200px" }], 2000);
}
function test()
{
InspectorTest.eventHandler["Animation.animationCreated"] = onCreated;
InspectorTest.eventHandler["Animation.animationStarted"] = onStarted;
InspectorTest.sendCommand("Animation.enable", {});
InspectorTest.evaluateInPage("startAnimation()", function() {});
function onCreated()
{
InspectorTest.log("Animation created");
}
function onStarted()
{
InspectorTest.log("Animation started");
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<div id="node" style="background-color: red; height: 100px"></div>
</body>
</html>