Skip to content

Commit ed12732

Browse files
committed
1 parent 8a0d4f5 commit ed12732

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/vs/workbench/contrib/debug/test/common/debugViewModel.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ViewModel } from 'vs/workbench/contrib/debug/common/debugViewModel';
88
import { StackFrame, Expression, Thread } from 'vs/workbench/contrib/debug/common/debugModel';
99
import { MockSession } from 'vs/workbench/contrib/debug/test/common/mockDebug';
1010
import { MockContextKeyService } from 'vs/platform/keybinding/test/common/mockKeybindingService';
11+
import { Source } from 'vs/workbench/contrib/debug/common/debugSource';
1112

1213
suite('Debug - View Model', () => {
1314
let model: ViewModel;
@@ -16,12 +17,17 @@ suite('Debug - View Model', () => {
1617
model = new ViewModel(new MockContextKeyService());
1718
});
1819

19-
test.skip('focused stack frame', () => {
20+
test('focused stack frame', () => {
2021
assert.equal(model.focusedStackFrame, null);
2122
assert.equal(model.focusedThread, null);
2223
const session = new MockSession();
2324
const thread = new Thread(session, 'myThread', 1);
24-
const frame = new StackFrame(thread, 1, undefined!, 'app.js', 'normal', { startColumn: 1, startLineNumber: 1, endColumn: 1, endLineNumber: 1 }, 0);
25+
const source = new Source({
26+
name: 'internalModule.js',
27+
sourceReference: 11,
28+
presentationHint: 'deemphasize'
29+
}, 'aDebugSessionId');
30+
const frame = new StackFrame(thread, 1, source, 'app.js', 'normal', { startColumn: 1, startLineNumber: 1, endColumn: 1, endLineNumber: 1 }, 0);
2531
model.setFocus(frame, thread, session, false);
2632

2733
assert.equal(model.focusedStackFrame!.getId(), frame.getId());

0 commit comments

Comments
 (0)