@@ -8,6 +8,7 @@ import { ViewModel } from 'vs/workbench/contrib/debug/common/debugViewModel';
88import { StackFrame , Expression , Thread } from 'vs/workbench/contrib/debug/common/debugModel' ;
99import { MockSession } from 'vs/workbench/contrib/debug/test/common/mockDebug' ;
1010import { MockContextKeyService } from 'vs/platform/keybinding/test/common/mockKeybindingService' ;
11+ import { Source } from 'vs/workbench/contrib/debug/common/debugSource' ;
1112
1213suite ( '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