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

Unified Diff: test/mjsunit/regress/regress-1639.js

Issue 2535733002: [debug] remove debug command processor from regress tests. (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 | « test/mjsunit/regress/regress-1081309.js ('k') | test/mjsunit/regress/regress-1639-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1639.js
diff --git a/test/mjsunit/regress/regress-1639.js b/test/mjsunit/regress/regress-1639.js
index 47cdbc43c1e2c401fad4b72f9b5d0f0f1980e73f..fd18ee83a5a1640820cd17cbbdb5bcd497173649 100644
--- a/test/mjsunit/regress/regress-1639.js
+++ b/test/mjsunit/regress/regress-1639.js
@@ -31,13 +31,6 @@ Debug = debug.Debug
var breaks = 0;
var exception = false;
-function sendCommand(state, cmd) {
- // Get the debug command processor in paused state.
- var dcp = state.debugCommandProcessor(false);
- var request = JSON.stringify(cmd);
- var response = dcp.processDebugJSONRequest(request);
-}
-
function listener(event, exec_state, event_data, data) {
try {
if (event == Debug.DebugEvent.Break) {
@@ -48,14 +41,7 @@ function listener(event, exec_state, event_data, data) {
"should not break on unexpected lines")
assertEquals('BREAK ' + breaks, line.substr(-7));
breaks++;
- if (breaks < 4) {
- sendCommand(exec_state, {
- seq: 0,
- type: "request",
- command: "continue",
- arguments: { stepaction: "next" }
- });
- }
+ if (breaks < 4) exec_state.prepareStep(Debug.StepAction.StepNext);
}
} catch (e) {
print(e);
« no previous file with comments | « test/mjsunit/regress/regress-1081309.js ('k') | test/mjsunit/regress/regress-1639-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698