Lines Matching refs:scope
80 // Check that the scope chain contains the expected types of scopes.
84 var scope = exec_state.frame().scope(i);
85 assertTrue(scope.isScope());
86 assertEquals(scopes[i], scope.scopeType());
88 // Check the global object when hitting the global scope.
90 assertEquals(this, scope.scopeObject().value());
116 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
121 // Check that the content of the scope is as expected. For functions just check
124 var scope = exec_state.frame().scope(number)
127 var property_mirror = scope.scopeObject().property(p);
128 assertFalse(property_mirror.isUndefined(), 'property ' + p + ' not found in scope');
137 // 'arguments' and might be exposed in the local and closure scope. Just
139 var scope_size = scope.scopeObject().properties().length;
140 if (!scope.scopeObject().property('arguments').isUndefined()) {
144 if (!scope.scopeObject().property('.catch-var').isUndefined()) {
148 if (!scope.scopeObject().property('').isUndefined()) {
153 print('Names found in scope:');
154 var names = scope.scopeObject().propertyNames();
164 // Send a scope request for information on a single scope and check the
166 request_json = '{"seq":0,"type":"request","command":"scope","arguments":{"number":'
167 request_json += scope.scopeIndex();
171 assertEquals(scope.scopeType(), response.body.type);
173 if (scope.scopeType() == debug.ScopeType.Local ||
174 scope.scopeType() == debug.ScopeType.Closure) {
183 assertTrue(found, "Scope object " + response.body.object.ref + " not found");
187 // Simple empty local scope.
203 // Local scope with a parameter.
219 // Local scope with a parameter and a local variable.
236 // Local scope with parameters and local variables.
254 // Empty local scope with use of eval.
288 // Local scope with parameters, local variables and local variable introduced
412 assertEquals(exec_state.frame().scope(0).scopeObject(), exec_state.frame().scope(1).scopeObject());
413 assertEquals(with_object, exec_state.frame().scope(1).scopeObject().value());
772 // Test global scope.