Home | History | Annotate | Download | only in harmony

Lines Matching refs:scopes

83 // Check that the scope chain contains the expected types of scopes.
84 function CheckScopeChain(scopes, exec_state) {
85 assertEquals(scopes.length, exec_state.frame().scopeCount());
86 for (var i = 0; i < scopes.length; i++) {
89 assertEquals(scopes[i], scope.scopeType());
92 if (scopes[i] == debug.ScopeType.Global) {
102 // Send a scopes request and check the result.
104 var request_json = '{"seq":0,"type":"request","command":"scopes"}';
107 assertEquals(scopes.length, response.body.scopes.length);
108 for (var i = 0; i < scopes.length; i++) {
109 assertEquals(i, response.body.scopes[i].index);
110 assertEquals(scopes[i], response.body.scopes[i].type);
111 if (scopes[i] == debug.ScopeType.Local ||
112 scopes[i] == debug.ScopeType.Closure) {
113 assertTrue(response.body.scopes[i].object.ref < 0);
115 assertTrue(response.body.scopes[i].object.ref >= 0);
119 found = response.refs[j].handle == response.body.scopes[i].object.ref;
121 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
158 // Also ignore synthetic variable from block scopes.