| 41 | } |
| 42 | |
| 43 | function assertScopeValues({ result }, expected) { |
| 44 | const unmatched = new Set(Object.keys(expected)); |
| 45 | for (const actual of result) { |
| 46 | const value = expected[actual.name]; |
| 47 | if (value) { |
| 48 | assert.strictEqual( |
| 49 | actual.value.value, |
| 50 | value, |
| 51 | `Expected scope values to be ${actual.value.value} instead of ${value}.` |
| 52 | ); |
| 53 | unmatched.delete(actual.name); |
| 54 | } |
| 55 | } |
| 56 | if (unmatched.size) |
| 57 | assert.fail(Array.from(unmatched.values())); |
| 58 | } |
| 59 | |
| 60 | async function testBreakpointOnStart(session) { |
| 61 | console.log('[test]', |