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

Unified Diff: test/mjsunit/debug-return-value.js

Issue 2557043005: [debugger] remove remaining uses of the debug command processor. (Closed)
Patch Set: fix Created 4 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
« no previous file with comments | « test/mjsunit/debug-references.js ('k') | test/mjsunit/debug-scripts-request.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-return-value.js
diff --git a/test/mjsunit/debug-return-value.js b/test/mjsunit/debug-return-value.js
index 7c9f94eda18c76b7ead2da31953d5a3d1e7613b5..4a07b47f1465fc3ce272e7f77b99b88f48046418 100644
--- a/test/mjsunit/debug-return-value.js
+++ b/test/mjsunit/debug-return-value.js
@@ -29,38 +29,6 @@
// Get the Debug object exposed from the debug context global object.
Debug = debug.Debug
-
-function ParsedResponse(json) {
- this.response_ = eval('(' + json + ')');
- this.refs_ = [];
- if (this.response_.refs) {
- for (var i = 0; i < this.response_.refs.length; i++) {
- this.refs_[this.response_.refs[i].handle] = this.response_.refs[i];
- }
- }
-}
-
-
-ParsedResponse.prototype.response = function() {
- return this.response_;
-}
-
-
-ParsedResponse.prototype.body = function() {
- return this.response_.body;
-}
-
-
-ParsedResponse.prototype.running = function() {
- return this.response_.running;
-}
-
-
-ParsedResponse.prototype.lookup = function(handle) {
- return this.refs_[handle];
-}
-
-
listener_complete = false;
exception = false;
break_count = 0;
@@ -109,16 +77,6 @@ function listener(event, exec_state, event_data, data) {
assertEquals(expected_return_value,
exec_state.frame(0).returnValue().value());
- // Check the same using the JSON commands.
- var dcp = exec_state.debugCommandProcessor(false);
- var request = '{"seq":0,"type":"request","command":"backtrace"}';
- var resp = dcp.processDebugJSONRequest(request);
- response = new ParsedResponse(resp);
- frames = response.body().frames;
- assertTrue(frames[0].atReturn);
- assertEquals(expected_return_value,
- response.lookup(frames[0].returnValue.ref).value);
-
listener_complete = true;
}
}
« no previous file with comments | « test/mjsunit/debug-references.js ('k') | test/mjsunit/debug-scripts-request.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698