Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:scopes

79 // Check that the scope chain contains the expected types of scopes.
80 function CheckScopeChain(scopes, exec_state) {
81 assertEquals(scopes.length, exec_state.frame().scopeCount());
82 for (var i = 0; i < scopes.length; i++) {
85 assertEquals(scopes[i], scope.scopeType());
88 if (scopes[i] == debug.ScopeType.Global) {
98 // Send a scopes request and check the result.
100 var request_json = '{"seq":0,"type":"request","command":"scopes"}';
103 assertEquals(scopes.length, response.body.scopes.length);
104 for (var i = 0; i < scopes.length; i++) {
105 assertEquals(i, response.body.scopes[i].index);
106 assertEquals(scopes[i], response.body.scopes[i].type);
107 if (scopes[i] == debug.ScopeType.Local ||
108 scopes[i] == debug.ScopeType.Closure) {
109 assertTrue(response.body.scopes[i].object.ref < 0);
111 assertTrue(response.body.scopes[i].object.ref >= 0);
115 found = response.refs[j].handle == response.body.scopes[i].object.ref;
117 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
693 // Test a mixture of scopes.