| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 <html> |  | 
| 2 <head> |  | 
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
    r-protocol-test.js"></script> |  | 
| 4 <script> |  | 
| 5 |  | 
| 6 var player; |  | 
| 7 |  | 
| 8 function startAnimation() |  | 
| 9 { |  | 
| 10     player = node.animate([{ width: "100px" }, { width: "200px" }], 2000); |  | 
| 11 } |  | 
| 12 |  | 
| 13 function test() |  | 
| 14 { |  | 
| 15     InspectorTest.eventHandler["Animation.animationStarted"] = onStarted; |  | 
| 16     InspectorTest.sendCommand("Animation.enable", {}); |  | 
| 17     InspectorTest.evaluateInPage("startAnimation()", function() {}); |  | 
| 18 |  | 
| 19     function onStarted(result) |  | 
| 20     { |  | 
| 21         InspectorTest.log("Animation started"); |  | 
| 22         InspectorTest.sendCommand("Animation.resolveAnimation", { animationId: r
    esult.params.animation.id }, animationResolved); |  | 
| 23     } |  | 
| 24 |  | 
| 25     function animationResolved(response) |  | 
| 26     { |  | 
| 27         InspectorTest.log("Remote object:"); |  | 
| 28         InspectorTest.log(response.result.remoteObject.className); |  | 
| 29         InspectorTest.completeTest(); |  | 
| 30     } |  | 
| 31 } |  | 
| 32 |  | 
| 33 </script> |  | 
| 34 </head> |  | 
| 35 <body onload="runTest()"> |  | 
| 36     <div id="node" style="background-color: red; height: 100px"></div> |  | 
| 37 </body> |  | 
| 38 </html> |  | 
| OLD | NEW | 
|---|