Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / profiler / agents-disabled-check.html
blob648db01614b626b8d238d494c69e5fc91121b758
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function test()
8 WebInspector.settingForTest("enableAsyncStackTraces").set(true);
9 var messages = [];
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();
18 messages.push("");
19 messages.push("--> WebInspector.targetManager.resumeAllTargets();");
20 WebInspector.targetManager.resumeAllTargets();
21 messages.push("");
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();
33 </script>
34 </head>
36 <body onload="runTest()">
37 <p>
38 Test that if a profiler is working all the agents are disabled.
39 </p>
41 </body>
42 </html>