3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
8 WebInspector
.settingForTest("enableAsyncStackTraces").set(true);
10 function collectMessages(message
)
12 messages
.push(message
);
14 InspectorBackendClass
.Connection
.prototype._dumpProtocolMessage
= collectMessages
;
15 InspectorBackendClass
.Options
.dumpInspectorProtocolMessages
= 1;
16 messages
.push("--> WebInspector.targetManager.suspendAllTargets();");
17 WebInspector
.targetManager
.suspendAllTargets();
19 messages
.push("--> WebInspector.targetManager.resumeAllTargets();");
20 WebInspector
.targetManager
.resumeAllTargets();
22 messages
.push("--> done");
23 InspectorBackendClass
.Options
.dumpInspectorProtocolMessages
= 0;
24 for (var i
= 0; i
< messages
.length
; ++i
) {
25 var message
= messages
[i
];
26 message
= message
.replace(/"id":\d+,/, '"id":<number>,');
27 InspectorTest
.addResult(message
);
29 WebInspector
.settingForTest("enableAsyncStackTraces").set(false);
30 InspectorTest
.completeTest();
36 <body onload=
"runTest()">
38 Test that if a profiler is working all the agents are disabled.