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/resource
s/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() |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 function didStartFrontendProfile2(messageObject) | 42 function didStartFrontendProfile2(messageObject) |
43 { | 43 { |
44 if (!InspectorTest.expectedSuccess("startFrontendProfileSecondTime", mes
sageObject)) | 44 if (!InspectorTest.expectedSuccess("startFrontendProfileSecondTime", mes
sageObject)) |
45 return; | 45 return; |
46 InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile2); | 46 InspectorTest.sendCommand("Profiler.stop", {}, didStopFrontendProfile2); |
47 } | 47 } |
48 | 48 |
49 function didStopFrontendProfile2(messageObject) | 49 function didStopFrontendProfile2(messageObject) |
50 { | 50 { |
51 InspectorTest.expectedSuccess("stopFrontendProfileSecondTime", messageOb
ject) | 51 InspectorTest.expectedSuccess("stopFrontendProfileSecondTime", messageOb
ject) |
| 52 InspectorTest.sendCommand("Profiler.clearProfiles", {}); |
52 InspectorTest.completeTest(); | 53 InspectorTest.completeTest(); |
53 } | 54 } |
54 } | 55 } |
55 </script> | 56 </script> |
56 </head> | 57 </head> |
57 <body onload="runTest()"> | 58 <body onload="runTest()"> |
58 <p> | 59 <p> |
59 Test that profiler is able to record a profile. | 60 Test that profiler is able to record a profile. |
60 Also it tests that profiler returns an error when it unable to find the profile. | 61 Also it tests that profiler returns an error when it unable to find the profile. |
61 </body> | 62 </body> |
62 </html> | 63 </html> |
OLD | NEW |