Chromium Code Reviews| 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')) |
|
dgozman
2017/05/05 06:10:54
Why this?
lushnikov
2017/05/05 20:58:26
This is needed since i await for suspension and re
|
| + continue; |
| message = message.replace(/"id":\d+,/, '"id":<number>,'); |
| InspectorTest.addResult(message); |
| } |