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

Unified Diff: test/mjsunit/debug-stepin-property-function-call.js

Issue 1525173003: [debugger] remove step count parameter from prepare step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/mjsunit/debug-stepin-property-function-call.js
diff --git a/test/mjsunit/debug-stepin-property-function-call.js b/test/mjsunit/debug-stepin-property-function-call.js
index 081fb24fb71ff098054e2a94a950b1f678d8a9fe..dff83c7e148ae7dd92ad414802cab197b3f38922 100644
--- a/test/mjsunit/debug-stepin-property-function-call.js
+++ b/test/mjsunit/debug-stepin-property-function-call.js
@@ -38,13 +38,13 @@ var state = 1;
function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
- if (state == 1) {
- exec_state.prepareStep(Debug.StepAction.StepIn, 3);
- state = 2;
- } else if (state == 2) {
+ if (state < 4) {
+ exec_state.prepareStep(Debug.StepAction.StepIn);
+ state++;
+ } else {
assertTrue(event_data.sourceLineText().indexOf("Expected to step") > 0,
"source line: \"" + event_data.sourceLineText() + "\"");
- state = 3;
+ state = 5;
}
}
} catch(e) {
@@ -143,7 +143,7 @@ for (var n in this) {
this[n]();
++functionsCalled;
assertNull(exception, n);
- assertEquals(3, state, n);
+ assertEquals(5, state, n);
assertEquals(functionsCalled, count, n);
}

Powered by Google App Engine
This is Rietveld 408576698