OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 function test() | 10 function test() |
11 { | 11 { |
12 InspectorTest.sendCommand("Profiler.stop", {}, didStopProfile); | 12 InspectorTest.sendCommand("Profiler.stop", {}, didStopProfile); |
13 function didStopProfile(messageObject) | 13 function didStopProfile(messageObject) |
14 { | 14 { |
15 InspectorTest.expectedError("ProfileAgent.stop", messageObject); | 15 InspectorTest.expectedError("ProfileAgent.stop", messageObject); |
16 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
17 } | 17 } |
18 | 18 |
19 } | 19 } |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 <body onload="runTest()"> | 22 <body onload="runTest()"> |
23 <p> | 23 <p> |
24 Test that profiler doesn't crash when we call stop without preceeding start. | 24 Test that profiler doesn't crash when we call stop without preceeding start. |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |