OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests that Debugger
.setSkipAllPauses skips breaks and does not block resumed notifications'); |
| 6 session.setupScriptMap(); |
| 7 |
| 8 (async function test() { |
| 9 await Protocol.Debugger.enable(); |
| 10 Protocol.Runtime.evaluate({expression: 'debugger;'}); |
| 11 await waitForPause(); |
| 12 await Protocol.Debugger.resume(); |
| 13 |
| 14 await Protocol.Debugger.setSkipAllPauses({skip: true}); |
| 15 await Protocol.Runtime.evaluate({expression: 'debugger'}); |
| 16 |
| 17 await Protocol.Debugger.setSkipAllPauses({skip: false}); |
| 18 Protocol.Runtime.evaluate({expression: 'debugger'}); |
| 19 await waitForPause(); |
| 20 Protocol.Debugger.setSkipAllPauses({skip: true}); |
| 21 Protocol.Debugger.resume(); |
| 22 await Protocol.Debugger.onceResumed(); |
| 23 |
| 24 InspectorTest.completeTest(); |
| 25 })(); |
| 26 |
| 27 async function waitForPause() { |
| 28 var message = await Protocol.Debugger.oncePaused(); |
| 29 InspectorTest.log('paused at:'); |
| 30 session.logSourceLocation(message.params.callFrames[0].location); |
| 31 } |
OLD | NEW |