(positions, exec_state)
| 167 | |
| 168 | // Check that the scopes have positions as expected. |
| 169 | function CheckScopeChainPositions(positions, exec_state) { |
| 170 | var all_scopes = exec_state.frame().allScopes(); |
| 171 | assertEquals(positions.length, all_scopes.length, "FrameMirror.allScopes length"); |
| 172 | for (var i = 0; i < positions.length; i++) { |
| 173 | var scope = exec_state.frame().scope(i); |
| 174 | var position = positions[i]; |
| 175 | if (!position) |
| 176 | continue; |
| 177 | |
| 178 | // assertEquals(position.start, scope.details().startPosition()) |
| 179 | // assertEquals(position.end, scope.details().endPosition()) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | // Simple empty local scope. |
| 184 | BeginTest("Local 1"); |
no test coverage detected
searching dependent graphs…