@@ -39,6 +39,7 @@ import type {
3939 State ,
4040 ThreadIndex ,
4141 IndexIntoSourceTable ,
42+ BottomBoxInfo ,
4243} from 'firefox-profiler/types' ;
4344import getNiceProfile from './fixtures/profiles/call-nodes' ;
4445import queryString from 'query-string' ;
@@ -1797,11 +1798,13 @@ describe('URL persistence of bottom box (source view and assembly view)', functi
17971798 const sourceFile =
17981799 'hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:5bb3e281dc9ec8a619c781d52882adb1cacf20bb' ;
17991800 const sourceIndex = getSourceIndex ( sourceFile ) ;
1800- const bottomBoxInfo = {
1801+ const bottomBoxInfo : BottomBoxInfo = {
18011802 libIndex : 0 ,
18021803 sourceIndex,
18031804 nativeSymbols : [ ] ,
18041805 initialNativeSymbol : null ,
1806+ highlightedLineNumber : null ,
1807+ highlightedInstructionAddress : null ,
18051808 } ;
18061809 dispatch ( updateBottomBoxContentsAndMaybeOpen ( 'calltree' , bottomBoxInfo ) ) ;
18071810 const newStore = _getStoreFromStateAfterUrlRoundtrip ( getState ( ) ) ;
@@ -1830,11 +1833,13 @@ describe('URL persistence of bottom box (source view and assembly view)', functi
18301833 const sourceFile =
18311834 'hg:hg.mozilla.org/mozilla-central:xpcom/threads/nsThread.cpp:5bb3e281dc9ec8a619c781d52882adb1cacf20bb' ;
18321835 const sourceIndex = getSourceIndex ( sourceFile ) ;
1833- const bottomBoxInfo = {
1836+ const bottomBoxInfo : BottomBoxInfo = {
18341837 libIndex : 0 ,
18351838 sourceIndex,
18361839 nativeSymbols : [ ] ,
18371840 initialNativeSymbol : null ,
1841+ highlightedLineNumber : null ,
1842+ highlightedInstructionAddress : null ,
18381843 } ;
18391844 dispatch ( updateBottomBoxContentsAndMaybeOpen ( 'calltree' , bottomBoxInfo ) ) ;
18401845 dispatch ( closeBottomBox ( ) ) ;
@@ -1859,11 +1864,13 @@ describe('URL persistence of bottom box (source view and assembly view)', functi
18591864 functionSize : 14 ,
18601865 functionSizeIsKnown : false ,
18611866 } ;
1862- const bottomBoxInfo = {
1867+ const bottomBoxInfo : BottomBoxInfo = {
18631868 libIndex : 0 ,
18641869 sourceIndex : null ,
18651870 nativeSymbols : [ nativeSymbolInfo ] ,
18661871 initialNativeSymbol : 0 ,
1872+ highlightedLineNumber : null ,
1873+ highlightedInstructionAddress : null ,
18671874 } ;
18681875 dispatch ( updateBottomBoxContentsAndMaybeOpen ( 'calltree' , bottomBoxInfo ) ) ;
18691876 const newStore = _getStoreFromStateAfterUrlRoundtrip ( getState ( ) ) ;
@@ -1902,11 +1909,13 @@ describe('URL persistence of bottom box (source view and assembly view)', functi
19021909 functionSize : 14 ,
19031910 functionSizeIsKnown : false ,
19041911 } ;
1905- const bottomBoxInfo = {
1912+ const bottomBoxInfo : BottomBoxInfo = {
19061913 libIndex : 0 ,
19071914 sourceIndex,
19081915 nativeSymbols : [ nativeSymbolInfo ] ,
19091916 initialNativeSymbol : 0 ,
1917+ highlightedLineNumber : null ,
1918+ highlightedInstructionAddress : null ,
19101919 } ;
19111920 dispatch ( updateBottomBoxContentsAndMaybeOpen ( 'calltree' , bottomBoxInfo ) ) ;
19121921 const newStore = _getStoreFromStateAfterUrlRoundtrip ( getState ( ) ) ;
0 commit comments