OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | |
4 <style type="text/css"> | |
5 #node.anim { | |
6 animation: anim 0 ease-in-out; | |
7 } | |
8 | |
9 @keyframes anim { | |
10 from { | |
11 width: 100px; | |
12 } | |
13 to { | |
14 width: 200px; | |
15 } | |
16 } | |
17 </style> | |
18 <script> | |
19 | |
20 function startAnimation() | |
21 { | |
22 node.classList.add("anim"); | |
23 } | |
24 | |
25 function test() | |
26 { | |
27 InspectorTest.eventHandler["Animation.animationCreated"] = onCreated; | |
28 InspectorTest.eventHandler["Animation.animationStarted"] = onStarted; | |
29 InspectorTest.sendCommand("Animation.enable", {}); | |
30 InspectorTest.evaluateInPage("startAnimation()", function() {}); | |
31 | |
32 function onCreated() | |
33 { | |
34 InspectorTest.log("Animation created"); | |
35 } | |
36 | |
37 function onStarted() | |
38 { | |
39 InspectorTest.log("Animation started"); | |
40 InspectorTest.completeTest(); | |
41 } | |
42 } | |
43 | |
44 </script> | |
45 </head> | |
46 <body onload="runTest()"> | |
47 <div id="node" style="background-color: red; width: 100px"></div> | |
48 </body> | |
49 </html> | |
OLD | NEW |