| Index: test/mjsunit/modules-debug-scopes2.js
|
| diff --git a/test/mjsunit/modules-debug-scopes2.js b/test/mjsunit/modules-debug-scopes2.js
|
| index ffe712f5d022b6d9f4b3bee50b90b49acc432986..1255326d06e8b9b3bdc60e0dbf222bfed5df1fcb 100644
|
| --- a/test/mjsunit/modules-debug-scopes2.js
|
| +++ b/test/mjsunit/modules-debug-scopes2.js
|
| @@ -79,32 +79,6 @@ function CheckScopeChain(scopes, exec_state) {
|
| assertScopeMirrorEquals(all_scopes[i], scope);
|
| }
|
| CheckFastAllScopes(scopes, exec_state);
|
| -
|
| - // Get the debug command processor.
|
| - var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
|
| -
|
| - // Send a scopes request and check the result.
|
| - var json;
|
| - var request_json = '{"seq":0,"type":"request","command":"scopes"}';
|
| - var response_json = dcp.processDebugJSONRequest(request_json);
|
| - var response = JSON.parse(response_json);
|
| - assertEquals(scopes.length, response.body.scopes.length);
|
| - for (var i = 0; i < scopes.length; i++) {
|
| - assertEquals(i, response.body.scopes[i].index);
|
| - assertEquals(scopes[i], response.body.scopes[i].type);
|
| - if (scopes[i] == debug.ScopeType.Local ||
|
| - scopes[i] == debug.ScopeType.Script ||
|
| - scopes[i] == debug.ScopeType.Closure) {
|
| - assertTrue(response.body.scopes[i].object.ref < 0);
|
| - } else {
|
| - assertTrue(response.body.scopes[i].object.ref >= 0);
|
| - }
|
| - var found = false;
|
| - for (var j = 0; j < response.refs.length && !found; j++) {
|
| - found = response.refs[j].handle == response.body.scopes[i].object.ref;
|
| - }
|
| - assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
|
| - }
|
| }
|
|
|
|
|
| @@ -154,31 +128,6 @@ function CheckScopeContent(minimum_content, number, exec_state) {
|
| }
|
| }
|
| assertTrue(scope_size >= minimum_count);
|
| -
|
| - // Get the debug command processor.
|
| - var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
|
| -
|
| - // Send a scope request for information on a single scope and check the
|
| - // result.
|
| - var request_json = '{"seq":0,"type":"request","command":"scope","arguments":{"number":';
|
| - request_json += scope.scopeIndex();
|
| - request_json += '}}';
|
| - var response_json = dcp.processDebugJSONRequest(request_json);
|
| - var response = JSON.parse(response_json);
|
| - assertEquals(scope.scopeType(), response.body.type);
|
| - assertEquals(number, response.body.index);
|
| - if (scope.scopeType() == debug.ScopeType.Local ||
|
| - scope.scopeType() == debug.ScopeType.Script ||
|
| - scope.scopeType() == debug.ScopeType.Closure) {
|
| - assertTrue(response.body.object.ref < 0);
|
| - } else {
|
| - assertTrue(response.body.object.ref >= 0);
|
| - }
|
| - var found = false;
|
| - for (var i = 0; i < response.refs.length && !found; i++) {
|
| - found = response.refs[i].handle == response.body.object.ref;
|
| - }
|
| - assertTrue(found, "Scope object " + response.body.object.ref + " not found");
|
| }
|
|
|
|
|
|
|