@@ -20,7 +20,7 @@ import { TerminalConfigHelper } from 'vs/workbench/contrib/terminal/browser/term
20
20
import { writeP } from 'vs/workbench/contrib/terminal/browser/terminalTestHelpers' ;
21
21
import { XtermTerminal } from 'vs/workbench/contrib/terminal/browser/xterm/xtermTerminal' ;
22
22
import { ITerminalConfiguration } from 'vs/workbench/contrib/terminal/common/terminal' ;
23
- import { BufferContentTracker , replaceWithNonBreakingSpaces } from 'vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker' ;
23
+ import { BufferContentTracker } from 'vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker' ;
24
24
import { ILifecycleService } from 'vs/workbench/services/lifecycle/common/lifecycle' ;
25
25
import { TestLifecycleService } from 'vs/workbench/test/browser/workbenchTestServices' ;
26
26
import { Terminal } from 'xterm' ;
@@ -99,10 +99,10 @@ suite('Buffer Content Tracker', () => {
99
99
await writeAndAssertBufferState ( promptPlusData , 6 , xterm . raw , bufferTracker ) ;
100
100
await writeP ( xterm . raw , '\x1b[3Ainserteddata' ) ;
101
101
await bufferTracker . update ( ) ;
102
- assert . deepStrictEqual ( bufferTracker . lines , [ promptPlusData , promptPlusData , `${ promptPlusData } inserteddata` , promptPlusData , promptPlusData , promptPlusData ] . map ( s => replaceWithNonBreakingSpaces ( s ) ) ) ;
102
+ assert . deepStrictEqual ( bufferTracker . lines , [ promptPlusData , promptPlusData , `${ promptPlusData } inserteddata` , promptPlusData , promptPlusData , promptPlusData ] ) ;
103
103
} ) ;
104
104
test ( 'should refresh viewport with full scrollback' , async ( ) => {
105
- const content = replaceWithNonBreakingSpaces ( `${ prompt } \r\n` . repeat ( 1030 ) . trimEnd ( ) ) ;
105
+ const content = `${ prompt } \r\n` . repeat ( 1030 ) . trimEnd ( ) ;
106
106
await writeP ( xterm . raw , content ) ;
107
107
await bufferTracker . update ( ) ;
108
108
await writeP ( xterm . raw , '\x1b[4Ainsertion' ) ;
@@ -115,7 +115,7 @@ suite('Buffer Content Tracker', () => {
115
115
const content = `${ prompt } \r\n` . repeat ( 1036 ) . trimEnd ( ) ;
116
116
await writeP ( xterm . raw , content ) ;
117
117
await bufferTracker . update ( ) ;
118
- const expected = content . split ( '\r\n' ) . map ( s => replaceWithNonBreakingSpaces ( s ) ) ;
118
+ const expected = content . split ( '\r\n' ) ;
119
119
// delete the 6 lines that should be trimmed
120
120
for ( let i = 0 ; i < 6 ; i ++ ) {
121
121
expected . pop ( ) ;
@@ -134,6 +134,6 @@ async function writeAndAssertBufferState(data: string, rows: number, terminal: T
134
134
await writeP ( terminal , content ) ;
135
135
await bufferTracker . update ( ) ;
136
136
assert . strictEqual ( bufferTracker . lines . length , rows ) ;
137
- assert . deepStrictEqual ( bufferTracker . lines , content . split ( '\r\n' ) . map ( s => replaceWithNonBreakingSpaces ( s ) ) ) ;
137
+ assert . deepStrictEqual ( bufferTracker . lines , content . split ( '\r\n' ) ) ;
138
138
}
139
139
0 commit comments