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

Unified Diff: test/inspector/debugger/pause.js

Issue 2923243002: [inspector] Return error when paused in different context group (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | test/inspector/debugger/pause-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/pause.js
diff --git a/test/inspector/debugger/pause.js b/test/inspector/debugger/pause.js
index 33ebeb830c25f20163f672689f41806ea0a4b523..fdef6669f817a5fbecdcb63e29d873970dcdeef3 100644
--- a/test/inspector/debugger/pause.js
+++ b/test/inspector/debugger/pause.js
@@ -82,6 +82,23 @@ InspectorTest.runAsyncTestSuite([
await Protocol1.Debugger.resume();
},
+ async function testResumeAnotherGroup() {
+ let contextGroup2 = new InspectorTest.ContextGroup();
+ let session2 = contextGroup2.connect();
+ session2.setupScriptMap();
+ let Protocol2 = session2.Protocol;
+ Protocol2.Debugger.enable();
+ Protocol1.Debugger.pause();
+ Protocol1.Runtime.evaluate({expression: 'var a = 42;'});
+ await waitPauseAndDumpLocation(session1);
+ InspectorTest.logMessage(await Protocol2.Debugger.resume());
+ InspectorTest.logMessage(await Protocol2.Debugger.stepOver());
+ InspectorTest.logMessage(await Protocol2.Debugger.stepInto());
+ InspectorTest.logMessage(await Protocol2.Debugger.stepOut());
+ await Protocol1.Debugger.resume();
+ await Protocol2.Debugger.disable();
+ },
+
async function testDisableBreaksShouldCancelPause() {
await Protocol1.Debugger.pause();
await Protocol1.Debugger.setBreakpointsActive({active: false});
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | test/inspector/debugger/pause-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698