(scopes, exec_state)
| 65 | |
| 66 | // Check that the scope chain contains the expected types of scopes. |
| 67 | function CheckScopeChain(scopes, exec_state) { |
| 68 | var all_scopes = exec_state.frame().allScopes(); |
| 69 | assertEquals(scopes.length, exec_state.frame().scopeCount()); |
| 70 | assertEquals(scopes.length, all_scopes.length, "FrameMirror.allScopes length"); |
| 71 | for (var i = 0; i < scopes.length; i++) { |
| 72 | var scope = exec_state.frame().scope(i); |
| 73 | assertEquals(scopes[i], scope.scopeType()); |
| 74 | assertScopeMirrorEquals(all_scopes[i], scope); |
| 75 | |
| 76 | // Check the global object when hitting the global scope. |
| 77 | if (scopes[i] == debug.ScopeType.Global) { |
| 78 | assertEquals(global_marker, scope.scopeObject().value().global_marker); |
| 79 | } |
| 80 | } |
| 81 | CheckFastAllScopes(scopes, exec_state); |
| 82 | } |
| 83 | |
| 84 | // Check that the content of the scope is as expected. For functions just check |
| 85 | // that there is a function. |
no test coverage detected
searching dependent graphs…