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

Unified Diff: test/inspector/debugger/step-over-another-context-group.js

Issue 2748503002: [inspector] changed a way of preserving stepping between tasks (Closed)
Patch Set: rebased on tunned stepping at return Created 3 years, 9 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/debugger/step-over-another-context-group.js
diff --git a/test/inspector/debugger/step-over-another-context-group.js b/test/inspector/debugger/step-over-another-context-group.js
new file mode 100644
index 0000000000000000000000000000000000000000..c860ef9f46142d30a789670a4b9cb18805599d3e
--- /dev/null
+++ b/test/inspector/debugger/step-over-another-context-group.js
@@ -0,0 +1,30 @@
+// 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.
+
+InspectorTest.log('Checks stepping with more then one context group.');
+
+(async function test() {
+ InspectorTest.setupScriptMap();
+ await Protocol.Debugger.enable();
+ let contextGroupId = utils.createContextGroup();
+ await Protocol.Debugger.enable({}, contextGroupId);
+ Protocol.Runtime.evaluate({expression: 'debugger'});
+ Protocol.Runtime.evaluate({expression: 'setTimeout(() => { debugger }, 0)'}, contextGroupId);
+ Protocol.Runtime.evaluate({expression: 'setTimeout(() => 42, 0)'});
+ await waitPauseAndDumpLocation();
+ Protocol.Debugger.stepOver();
+ await Protocol.Debugger.oncePaused();
+ Protocol.Debugger.stepOver();
+ await waitPauseAndDumpLocation();
+ await Protocol.Debugger.disable({}, contextGroupId);
+ await Protocol.Debugger.disable();
+ InspectorTest.completeTest();
+})();
+
+async function waitPauseAndDumpLocation() {
+ var message = await Protocol.Debugger.oncePaused();
+ InspectorTest.log('paused at:');
+ await InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ return message;
+}

Powered by Google App Engine
This is Rietveld 408576698