Fix test mocks

This commit is contained in:
Daniel Imms
2018-01-16 10:12:37 -08:00
parent 1e9fb8696a
commit e9b55930d8
2 changed files with 14 additions and 1 deletions
+4
View File
@@ -88,6 +88,10 @@ export class AccessibilityManager implements IDisposable {
this._rowElements = null;
}
public get isNavigationModeActive(): boolean {
return this._navigationMode.isActive;
}
private _onResize(cols: number, rows: number): void {
// Grow rows as required
for (let i = this._rowContainer.children.length; i < this._terminal.rows; i++) {
+10 -1
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { ITerminal, IBuffer, IBufferSet, IBrowser, ICharMeasure, ISelectionManager, ITerminalOptions, IListenerType, IInputHandlingTerminal, IViewport, ICircularList, ICompositionHelper, ITheme, ILinkifier, IMouseHelper } from '../Interfaces';
import { ITerminal, IBuffer, IBufferSet, IBrowser, ICharMeasure, ISelectionManager, ITerminalOptions, IListenerType, IInputHandlingTerminal, IViewport, ICircularList, ICompositionHelper, ITheme, ILinkifier, IMouseHelper, IDisposable } from '../Interfaces';
import { LineData } from '../Types';
import { Buffer } from '../Buffer';
import * as Browser from './Browser';
@@ -42,6 +42,9 @@ export class MockTerminal implements ITerminal {
off(type: string, listener: IListenerType): void {
throw new Error('Method not implemented.');
}
addDisposableListener(type: string, handler: IListenerType): IDisposable {
throw new Error('Method not implemented.');
}
scrollLines(disp: number, suppressScrollEvent: boolean): void {
throw new Error('Method not implemented.');
}
@@ -193,6 +196,9 @@ export class MockInputHandlingTerminal implements IInputHandlingTerminal {
emit(type: string, data?: any): void {
throw new Error('Method not implemented.');
}
addDisposableListener(type: string, handler: IListenerType): IDisposable {
throw new Error('Method not implemented.');
}
}
export class MockBuffer implements IBuffer {
@@ -229,6 +235,9 @@ export class MockRenderer implements IRenderer {
emit(type: string, data?: any): void {
throw new Error('Method not implemented.');
}
addDisposableListener(type: string, handler: IListenerType): IDisposable {
throw new Error('Method not implemented.');
}
dimensions: IRenderDimensions;
setTheme(theme: ITheme): IColorSet { return <IColorSet>{}; }
onResize(cols: number, rows: number, didCharSizeChange: boolean): void {}