Lines Matching refs:scope
83 // Check that the scope chain contains the expected types of scopes.
87 var scope = exec_state.frame().scope(i);
88 assertTrue(scope.isScope());
89 assertEquals(scopes[i], scope.scopeType());
91 // Check the global object when hitting the global scope.
95 assertPropertiesEqual(global_object, scope.scopeObject().value());
121 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
125 // Check that the content of the scope is as expected. For functions just check
128 var scope = exec_state.frame().scope(number);
131 var property_mirror = scope.scopeObject().property(p);
133 print('property ' + p + ' not found in scope');
135 assertFalse(property_mirror.isUndefined(), 'property ' + p + ' not found in scope');
144 // 'arguments' and might be exposed in the local and closure scope. Just
146 var scope_size = scope.scopeObject().properties().length;
147 if (!scope.scopeObject().property('arguments').isUndefined()) {
151 if (!scope.scopeObject().property('.catch-var').isUndefined()) {
155 if (!scope.scopeObject().property('').isUndefined()) {
159 if (!scope.scopeObject().property('.block').isUndefined()) {
164 print('Names found in scope:');
165 var names = scope.scopeObject().propertyNames();
175 // Send a scope request for information on a single scope and check the
177 var request_json = '{"seq":0,"type":"request","command":"scope","arguments":{"number":';
178 request_json += scope.scopeIndex();
182 assertEquals(scope.scopeType(), response.body.type);
184 if (scope.scopeType() == debug.ScopeType.Local ||
185 scope.scopeType() == debug.ScopeType.Closure) {
194 assertTrue(found, "Scope object " + response.body.object.ref + " not found");
198 // Simple empty block scope in local scope.
216 // Simple empty block scope in local scope with a parameter.
234 // Local scope with a parameter and a local variable.
251 // Local scope with parameters and local variables.
269 // Single variable in a block scope.
290 // Two variables in a block scope.
312 // Two variables in a block scope.
378 // The function scope contains a temporary iteration variable.
403 // The function scope contains a temporary iteration variable.