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 function triggerEmptyTransition() |
| 7 { |
| 8 node.offsetTop; |
| 9 node.style.transition = "1s"; |
| 10 node.offsetTop; |
| 11 node.style.width = "200px"; |
| 12 node.offsetTop; |
| 13 node.style.transition = ""; |
| 14 node.offsetTop; |
| 15 } |
| 16 |
| 17 function test() |
| 18 { |
| 19 InspectorTest.eventHandler["Animation.animationCreated"] = onCreated; |
| 20 InspectorTest.eventHandler["Animation.animationCanceled"] = onCanceled; |
| 21 InspectorTest.sendCommand("Animation.enable", {}); |
| 22 InspectorTest.evaluateInPage("triggerEmptyTransition()", function() {}); |
| 23 |
| 24 function onCreated() |
| 25 { |
| 26 InspectorTest.log("Animation created"); |
| 27 } |
| 28 |
| 29 function onCanceled() |
| 30 { |
| 31 InspectorTest.log("Animation canceled"); |
| 32 InspectorTest.completeTest(); |
| 33 } |
| 34 } |
| 35 |
| 36 </script> |
| 37 </head> |
| 38 <body onload="runTest()"> |
| 39 <div id="node" style="background-color: red; width: 100px"></div> |
| 40 </body> |
| 41 </html> |
OLD | NEW |