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

Unified Diff: test/debugger/debug/es6/debug-stepin-microtasks.js

Issue 2530533002: [debug-wrapper] adapt stepping tests to inspector behavior. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | test/debugger/debug/regress/regress-crbug-568477-1.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/es6/debug-stepin-microtasks.js
diff --git a/test/debugger/debug/es6/debug-stepin-microtasks.js b/test/debugger/debug/es6/debug-stepin-microtasks.js
index 805e5dc273189b417fdd3937f0b380ee0cceb1bc..dd3f7a1c9ef34d5910ebcba3f0e6be1d2a710136 100644
--- a/test/debugger/debug/es6/debug-stepin-microtasks.js
+++ b/test/debugger/debug/es6/debug-stepin-microtasks.js
@@ -19,6 +19,8 @@ function listener(event, exec_state, event_data, data) {
"Expected: // Break " + break_count + ".");
if (source.indexOf("StepOver.") !== -1) {
exec_state.prepareStep(Debug.StepAction.StepNext);
+ } else if (source.indexOf("StepOut.") !== -1) {
+ exec_state.prepareStep(Debug.StepAction.StepOut);
} else {
exec_state.prepareStep(Debug.StepAction.StepIn);
}
@@ -46,7 +48,7 @@ Promise.resolve(42)
function promise1() {
debugger; // Break 0.
return exception || 1; // Break 1.
-} // Break 2.
+} // Break 2. StepOver.
function promise2() {
throw new Error; // Break 3.
@@ -59,7 +61,7 @@ function promise3() {
function promise4() {
finalize(); // Break 6. StepOver.
return 0; // Break 7.
-} // Break 8. StepOver.
+} // Break 8. StepOut.
function finalize() {
Promise.resolve().then(function() {
« no previous file with comments | « no previous file | test/debugger/debug/regress/regress-crbug-568477-1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698