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

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

Issue 2832943002: DevTools: properly handle target suspension/resuming in NetworkProject (Closed)
Patch Set: address comments Created 3 years, 7 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: third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html
diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html b/third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html
index bc01afb5f8e0baa14dd26525da3f37bba2358e0b..3c176399fa98c25da375696489313b76520d4baf 100644
--- a/third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html
+++ b/third_party/WebKit/LayoutTests/inspector/profiler/agents-disabled-check.html
@@ -3,7 +3,7 @@
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script>
-function test()
+async function test()
{
var messages = [];
function collectMessages(message)
@@ -13,15 +13,17 @@ function test()
Protocol.TargetBase.prototype._dumpProtocolMessage = collectMessages;
Protocol.InspectorBackend.Options.dumpInspectorProtocolMessages = 1;
messages.push("--> SDK.targetManager.suspendAllTargets();");
- SDK.targetManager.suspendAllTargets();
+ await SDK.targetManager.suspendAllTargets();
messages.push("");
messages.push("--> SDK.targetManager.resumeAllTargets();");
- SDK.targetManager.resumeAllTargets();
+ await SDK.targetManager.resumeAllTargets();
messages.push("");
messages.push("--> done");
Protocol.InspectorBackend.Options.dumpInspectorProtocolMessages = 0;
for (var i = 0; i < messages.length; ++i) {
var message = messages[i];
+ if (message.startsWith('backend'))
+ continue;
message = message.replace(/"id":\d+,/, '"id":<number>,');
InspectorTest.addResult(message);
}

Powered by Google App Engine
This is Rietveld 408576698