3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
8 function startAnimation()
10 player
= node
.animate([{ width
: "100px" }, { width
: "200px" }], 2000);
13 function cancelAnimation()
21 InspectorTest
.eventHandler
["Animation.animationCreated"] = onCreated
;
22 InspectorTest
.eventHandler
["Animation.animationCanceled"] = onCanceled
;
23 InspectorTest
.sendCommand("Animation.enable", {});
24 InspectorTest
.evaluateInPage("startAnimation()", function() {});
28 InspectorTest
.log("Animation created");
29 InspectorTest
.evaluateInPage("cancelAnimation()", function() {});
34 InspectorTest
.log("Animation canceled");
35 InspectorTest
.completeTest();
41 <body onload=
"runTest()">
42 <div id=
"node" style=
"background-color: red; height: 100px"></div>