| 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 test() | |
| 7 { | |
| 8 InspectorTest.sendCommandOrDie("Animation.enable", {}); | |
| 9 InspectorTest.sendCommandOrDie("Animation.setPlaybackRate", { playbackRate:
0 }, pagePaused); | |
| 10 | |
| 11 function pagePaused() | |
| 12 { | |
| 13 InspectorTest.sendCommandOrDie("Animation.getPlaybackRate", {}, logPlayb
ackRate); | |
| 14 } | |
| 15 | |
| 16 function logPlaybackRate(result) | |
| 17 { | |
| 18 InspectorTest.log(result.playbackRate); | |
| 19 InspectorTest.sendCommandOrDie("Animation.disable", {}, pageDisabled); | |
| 20 } | |
| 21 | |
| 22 function pageDisabled(message) | |
| 23 { | |
| 24 InspectorTest.sendCommandOrDie("Animation.enable", {}); | |
| 25 InspectorTest.sendCommandOrDie("Animation.getPlaybackRate", {}, animatio
nsDisabled); | |
| 26 } | |
| 27 | |
| 28 function animationsDisabled(result) | |
| 29 { | |
| 30 InspectorTest.log(result.playbackRate); | |
| 31 InspectorTest.completeTest(); | |
| 32 } | |
| 33 } | |
| 34 | |
| 35 </script> | |
| 36 </head> | |
| 37 <body onload="runTest()"> | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |