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

Unified 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, 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/set-skip-all-pauses.js
diff --git a/test/inspector/debugger/set-skip-all-pauses.js b/test/inspector/debugger/set-skip-all-pauses.js
new file mode 100644
index 0000000000000000000000000000000000000000..c3614872f113bfcb8c04dcdb1073f4e18c0da96a
--- /dev/null
+++ b/test/inspector/debugger/set-skip-all-pauses.js
@@ -0,0 +1,31 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+let {session, contextGroup, Protocol} = InspectorTest.start('Tests that Debugger.setSkipAllPauses skips breaks and does not block resumed notifications');
+session.setupScriptMap();
+
+(async function test() {
+ await Protocol.Debugger.enable();
+ Protocol.Runtime.evaluate({expression: 'debugger;'});
+ await waitForPause();
+ await Protocol.Debugger.resume();
+
+ await Protocol.Debugger.setSkipAllPauses({skip: true});
+ await Protocol.Runtime.evaluate({expression: 'debugger'});
+
+ await Protocol.Debugger.setSkipAllPauses({skip: false});
+ Protocol.Runtime.evaluate({expression: 'debugger'});
+ await waitForPause();
+ Protocol.Debugger.setSkipAllPauses({skip: true});
+ Protocol.Debugger.resume();
+ await Protocol.Debugger.onceResumed();
+
+ InspectorTest.completeTest();
+})();
+
+async function waitForPause() {
+ var message = await Protocol.Debugger.oncePaused();
+ InspectorTest.log('paused at:');
+ session.logSourceLocation(message.params.callFrames[0].location);
+}
« 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