@@ -11,7 +11,7 @@ import { CellData } from 'common/buffer/CellData';
1111import { Attributes , BgFlags , UnderlineStyle } from 'common/buffer/Constants' ;
1212import { AttributeData , ExtendedAttrs } from 'common/buffer/AttributeData' ;
1313import { Params } from 'common/parser/Params' ;
14- import { MockCoreService , MockBufferService , MockOptionsService , MockLogService , MockMouseStateService , MockCharsetService , MockUnicodeService , MockOscLinkService } from 'common/TestUtils.test' ;
14+ import { MockCoreService , MockBufferService , MockOptionsService , MockLogService , MockMouseStateService , MockCharsetService , MockUnicodeService , MockOscLinkService , extendedAttributes } from 'common/TestUtils.test' ;
1515import { IBufferService , ICoreService , type IOscLinkService } from 'common/services/Services' ;
1616import { DEFAULT_OPTIONS } from 'common/services/OptionsService' ;
1717import { clone } from 'common/Clone' ;
@@ -2002,15 +2002,15 @@ describe('InputHandler', () => {
20022002
20032003 // eAttrs in buffer pos 0 and 1 should be the same object
20042004 assert . equal (
2005- ( bufferService . buffer ! . lines . get ( 0 ) ! as any ) . _extendedAttrs [ 0 ] ,
2006- ( bufferService . buffer ! . lines . get ( 0 ) ! as any ) . _extendedAttrs [ 1 ]
2005+ extendedAttributes ( bufferService . buffer ! . lines . get ( 0 ) ! , 0 ) ,
2006+ extendedAttributes ( bufferService . buffer ! . lines . get ( 0 ) ! , 1 )
20072007 ) ;
20082008 // should not have written eAttr for pos 2 in the buffer
2009- assert . equal ( ( bufferService . buffer ! . lines . get ( 0 ) ! as any ) . _extendedAttrs [ 2 ] , undefined ) ;
2009+ assert . equal ( extendedAttributes ( bufferService . buffer ! . lines . get ( 0 ) ! , 2 ) , undefined ) ;
20102010 // eAttrs in buffer pos 1 and pos 3 must be different objs
20112011 assert . notEqual (
2012- ( bufferService . buffer ! . lines . get ( 0 ) ! as any ) . _extendedAttrs [ 1 ] ,
2013- ( bufferService . buffer ! . lines . get ( 0 ) ! as any ) . _extendedAttrs [ 3 ]
2012+ extendedAttributes ( bufferService . buffer ! . lines . get ( 0 ) ! , 1 ) ,
2013+ extendedAttributes ( bufferService . buffer ! . lines . get ( 0 ) ! , 3 )
20142014 ) ;
20152015 } ) ;
20162016 } ) ;
0 commit comments