(scopes, exec_state)
| 99 | |
| 100 | // Check that the scope chain contains the expected types of scopes. |
| 101 | function CheckScopeChain(scopes, exec_state) { |
| 102 | var all_scopes = exec_state.frame().allScopes(); |
| 103 | assertEquals(scopes.length, exec_state.frame().scopeCount()); |
| 104 | assertEquals(scopes.length, all_scopes.length, "FrameMirror.allScopes length"); |
| 105 | for (var i = 0; i < scopes.length; i++) { |
| 106 | var scope = exec_state.frame().scope(i); |
| 107 | assertEquals(scopes[i], scope.scopeType()); |
| 108 | assertScopeMirrorEquals(all_scopes[i], scope); |
| 109 | |
| 110 | // Check the global object when hitting the global scope. |
| 111 | if (scopes[i] == debug.ScopeType.Global) { |
| 112 | // Just check the marker of the global object. |
| 113 | assertEquals(scope.scopeObject().value().global_marker, global_marker); |
| 114 | } |
| 115 | } |
| 116 | CheckFastAllScopes(scopes, exec_state); |
| 117 | } |
| 118 | |
| 119 | |
| 120 | // Check that the scope chain contains the expected names of scopes. |
no test coverage detected