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

Unified Diff: test/inspector/sessions/debugger-stepping-and-breakpoints.js

Issue 2925903002: [inspector] Make breakpoints active state per-agent (Closed)
Patch Set: fixed wrong behavior 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
Index: test/inspector/sessions/debugger-stepping-and-breakpoints.js
diff --git a/test/inspector/sessions/debugger-stepping-and-breakpoints.js b/test/inspector/sessions/debugger-stepping-and-breakpoints.js
index b2464c2868ac7ac785b4124d8b8f4b5af032c79c..8ecf8076e8108cae363b867dc0df04da11e42ffd 100644
--- a/test/inspector/sessions/debugger-stepping-and-breakpoints.js
+++ b/test/inspector/sessions/debugger-stepping-and-breakpoints.js
@@ -143,6 +143,25 @@ function bar() {
InspectorTest.log('Evaluating common breakpoint in 1');
await session1.Protocol.Runtime.evaluate({expression: 'foo();'});
+ InspectorTest.log('Unskipping pauses in 1');
+ await session1.Protocol.Debugger.setSkipAllPauses({skip: false});
+ InspectorTest.log('Unskipping pauses in 2');
+ await session2.Protocol.Debugger.setSkipAllPauses({skip: false});
+
+ InspectorTest.log('Deactivating breakpoints in 1');
+ await session1.Protocol.Debugger.setBreakpointsActive({active: false});
+ InspectorTest.log('Evaluating common breakpoint in 1');
+ session1.Protocol.Runtime.evaluate({expression: 'foo();'});
+ await waitForPaused(session2, 2);
+ InspectorTest.log('Resuming in 2');
+ session2.Protocol.Debugger.resume();
+ await waitForResumed(session2, 2);
+
+ InspectorTest.log('Deactivating breakpoints in 2');
+ await session2.Protocol.Debugger.setBreakpointsActive({active: false});
+ InspectorTest.log('Evaluating common breakpoint in 1');
+ await session1.Protocol.Runtime.evaluate({expression: 'foo();'});
+
InspectorTest.completeTest();
function waitForBothPaused() {
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | test/inspector/sessions/debugger-stepping-and-breakpoints-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698