Home | History | Annotate | Download | only in harmony

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.
92 assertPropertiesEqual(this, scope.scopeObject().value());
118 assertTrue(found, "Scope object " + response.body.scopes[i].object.ref + " not found");
122 // Check that the content of the scope is as expected. For functions just check
125 var scope = exec_state.frame().scope(number);
128 var property_mirror = scope.scopeObject().property(p);
130 print('property ' + p + ' not found in scope');
132 assertFalse(property_mirror.isUndefined(), 'property ' + p + ' not found in scope');
141 // 'arguments' and might be exposed in the local and closure scope. Just
143 var scope_size = scope.scopeObject().properties().length;
144 if (!scope.scopeObject().property('arguments').isUndefined()) {
148 if (!scope.scopeObject().property('.catch-var').isUndefined()) {
152 if (!scope.scopeObject().property('').isUndefined()) {
156 if (!scope.scopeObject().property('.block').isUndefined()) {
161 print('Names found in scope:');
162 var names = scope.scopeObject().propertyNames();
172 // Send a scope request for information on a single scope and check the
174 var request_json = '{"seq":0,"type":"request","command":"scope","arguments":{"number":';
175 request_json += scope.scopeIndex();
179 assertEquals(scope.scopeType(), response.body.type);
181 if (scope.scopeType() == debug.ScopeType.Local ||
182 scope.scopeType() == debug.ScopeType.Closure) {
191 assertTrue(found, "Scope object " + response.body.object.ref + " not found");