Lines Matching refs:scopes
81 function CheckScopeChain(scopes, exec_state) { argument
82 assertEquals(scopes.length, exec_state.frame().scopeCount());
83 for (var i = 0; i < scopes.length; i++) {
86 assertEquals(scopes[i], scope.scopeType());
89 if (scopes[i] == debug.ScopeType.Global) {
102 assertEquals(scopes.length, response.body.scopes.length);
103 for (var i = 0; i < scopes.length; i++) {
104 assertEquals(i, response.body.scopes[i].index);
105 assertEquals(scopes[i], response.body.scopes[i].type);
106 if (scopes[i] == debug.ScopeType.Local ||
107 scopes[i] == debug.ScopeType.Closure) {
108 assertTrue(response.body.scopes[i].object.ref < 0);
110 assertTrue(response.body.scopes[i].object.ref >= 0);
114 found = response.refs[j].handle == response.body.scopes[i].object.ref;
116 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");