Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: LayoutTests/inspector/profiler/agents-disabled-check.html

Issue 614323003: DevTools: enable by default disableAgentsWhenProfile experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unnecessary line was removed Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/profiler/agents-disabled-check.html
diff --git a/LayoutTests/inspector/profiler/agents-disabled-check.html b/LayoutTests/inspector/profiler/agents-disabled-check.html
new file mode 100644
index 0000000000000000000000000000000000000000..4280c23a5d223c26d23a314f088128e04f3a27c6
--- /dev/null
+++ b/LayoutTests/inspector/profiler/agents-disabled-check.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+ <script src="../../http/tests/inspector/inspector-test.js"></script>
+<script>
+
+function test()
+{
+ WebInspector.settings.enableAsyncStackTraces.set(true);
+ var messages = [];
+ function collectMessages(message)
+ {
+ messages.push(message);
+ }
+ InspectorBackendClass.Connection.prototype._dumpProtocolMessage = collectMessages;
+ InspectorBackendClass.Options.dumpInspectorProtocolMessages = 1;
+ messages.push("--> WebInspector.targetManager.suspendAllTargets();");
+ WebInspector.targetManager.suspendAllTargets();
+ messages.push("");
+ messages.push("--> WebInspector.targetManager.resumeAllTargets();");
+ WebInspector.targetManager.resumeAllTargets();
+ messages.push("");
+ messages.push("--> done");
+ InspectorBackendClass.Options.dumpInspectorProtocolMessages = 0;
+ for (var i = 0; i < messages.length; ++i) {
+ var message = messages[i];
+ message = message.replace(/"id":\d+,/, '"id":<number>,');
+ InspectorTest.addResult(message);
+ }
+ WebInspector.settings.enableAsyncStackTraces.set(false);
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Test that if a profiler is working all the agents are disabled.
+</p>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698