From b9cbdf6a0de068631f15edb8a8ed1c7433000f77 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 8 Mar 2018 06:19:17 -0800 Subject: [PATCH] Fix tests --- src/Terminal.integration.ts | 2 +- src/Terminal.test.ts | 4 ++-- src/Terminal.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Terminal.integration.ts b/src/Terminal.integration.ts index 283c5bc0..fdf27acf 100644 --- a/src/Terminal.integration.ts +++ b/src/Terminal.integration.ts @@ -125,7 +125,7 @@ if (os.platform() !== 'win32') { // Perform a synchronous .write(data) xterm.writeBuffer.push(fromPty); - xterm.innerWrite(); + xterm._innerWrite(); let fromEmulator = terminalToString(xterm); console.log = CONSOLE_LOG; diff --git a/src/Terminal.test.ts b/src/Terminal.test.ts index 12467d84..0db9545f 100644 --- a/src/Terminal.test.ts +++ b/src/Terminal.test.ts @@ -29,11 +29,11 @@ describe('term.js addons', () => { term.refresh = () => {}; (term).renderer = new MockRenderer(); term.viewport = new MockViewport(); - (term).compositionHelper = new MockCompositionHelper(); + (term)._compositionHelper = new MockCompositionHelper(); // Force synchronous writes term.write = (data) => { term.writeBuffer.push(data); - (term).innerWrite(); + (term)._innerWrite(); }; (term).element = { classList: { diff --git a/src/Terminal.ts b/src/Terminal.ts index 68128ff3..02dc261d 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -2079,7 +2079,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT * Emit the 'title' event and populate the given title. * @param {string} title The title to populate in the event. */ - private _handleTitle(title: string): void { + public handleTitle(title: string): void { /** * This event is emitted when the title of the terminal is changed * from inside the terminal. The parameter is the new title.