Lines Matching refs:scopes
87 function CheckFastAllScopes(scopes, exec_state) argument
91 assertTrue(scopes.length >= length);
92 for (var i = 0; i < scopes.length && i < length; i++) {
95 assertEquals(scopes[scopes.length - i - 1], scope.scopeType());
101 function CheckScopeChain(scopes, exec_state) { argument
103 assertEquals(scopes.length, exec_state.frame().scopeCount());
104 assertEquals(scopes.length, all_scopes.length, "FrameMirror.allScopes length");
105 for (var i = 0; i < scopes.length; i++) {
108 assertEquals(scopes[i], scope.scopeType());
112 if (scopes[i] == debug.ScopeType.Global) {
118 CheckFastAllScopes(scopes, exec_state);
128 assertEquals(scopes.length, response.body.scopes.length);
129 for (var i = 0; i < scopes.length; i++) {
130 assertEquals(i, response.body.scopes[i].index);
131 assertEquals(scopes[i], response.body.scopes[i].type);
132 if (scopes[i] == debug.ScopeType.Local ||
133 scopes[i] == debug.ScopeType.Closure) {
134 assertTrue(response.body.scopes[i].object.ref < 0);
136 assertTrue(response.body.scopes[i].object.ref >= 0);
140 found = response.refs[j].handle == response.body.scopes[i].object.ref;
142 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");