@@ -10,7 +10,7 @@ import { NULL_CELL_CODE, NULL_CELL_WIDTH, NULL_CELL_CHAR, DEFAULT_ATTR, FgFlags,
1010import { BufferLine , DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine' ;
1111import { IBufferLine } from 'common/Types' ;
1212import { CellData } from 'common/buffer/CellData' ;
13- import { MockOptionsService } from 'common/TestUtils.test' ;
13+ import { MockCoreService , MockOptionsService } from 'common/TestUtils.test' ;
1414import { css } from 'browser/Color' ;
1515import { MockCharacterJoinerService } from 'browser/TestUtils.test' ;
1616
@@ -21,30 +21,36 @@ describe('DomRendererRowFactory', () => {
2121
2222 beforeEach ( ( ) => {
2323 dom = new jsdom . JSDOM ( '' ) ;
24- rowFactory = new DomRendererRowFactory ( dom . window . document , {
25- background : css . toColor ( '#010101' ) ,
26- foreground : css . toColor ( '#020202' ) ,
27- ansi : [
28- // dark:
29- css . toColor ( '#2e3436' ) ,
30- css . toColor ( '#cc0000' ) ,
31- css . toColor ( '#4e9a06' ) ,
32- css . toColor ( '#c4a000' ) ,
33- css . toColor ( '#3465a4' ) ,
34- css . toColor ( '#75507b' ) ,
35- css . toColor ( '#06989a' ) ,
36- css . toColor ( '#d3d7cf' ) ,
37- // bright:
38- css . toColor ( '#555753' ) ,
39- css . toColor ( '#ef2929' ) ,
40- css . toColor ( '#8ae234' ) ,
41- css . toColor ( '#fce94f' ) ,
42- css . toColor ( '#729fcf' ) ,
43- css . toColor ( '#ad7fa8' ) ,
44- css . toColor ( '#34e2e2' ) ,
45- css . toColor ( '#eeeeec' )
46- ]
47- } as any , new MockCharacterJoinerService ( ) , new MockOptionsService ( { drawBoldTextInBrightColors : true } ) ) ;
24+ rowFactory = new DomRendererRowFactory (
25+ dom . window . document ,
26+ {
27+ background : css . toColor ( '#010101' ) ,
28+ foreground : css . toColor ( '#020202' ) ,
29+ ansi : [
30+ // dark:
31+ css . toColor ( '#2e3436' ) ,
32+ css . toColor ( '#cc0000' ) ,
33+ css . toColor ( '#4e9a06' ) ,
34+ css . toColor ( '#c4a000' ) ,
35+ css . toColor ( '#3465a4' ) ,
36+ css . toColor ( '#75507b' ) ,
37+ css . toColor ( '#06989a' ) ,
38+ css . toColor ( '#d3d7cf' ) ,
39+ // bright:
40+ css . toColor ( '#555753' ) ,
41+ css . toColor ( '#ef2929' ) ,
42+ css . toColor ( '#8ae234' ) ,
43+ css . toColor ( '#fce94f' ) ,
44+ css . toColor ( '#729fcf' ) ,
45+ css . toColor ( '#ad7fa8' ) ,
46+ css . toColor ( '#34e2e2' ) ,
47+ css . toColor ( '#eeeeec' )
48+ ]
49+ } as any ,
50+ new MockCharacterJoinerService ( ) ,
51+ new MockOptionsService ( { drawBoldTextInBrightColors : true } ) ,
52+ new MockCoreService ( )
53+ ) ;
4854 lineData = createEmptyLineData ( 2 ) ;
4955 } ) ;
5056
0 commit comments