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

Side by Side Diff: test/inspector/debugger/set-skip-all-pauses.js

Issue 2906153002: [inspector] Support multiple sessions per context group (Closed)
Patch Set: using set per kozy@ Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « src/inspector/v8-runtime-agent-impl.cc ('k') | test/inspector/debugger/set-skip-all-pauses-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698