Move MouseHelper.test into browser

This commit is contained in:
Daniel Imms
2019-06-08 19:40:18 -07:00
parent 5dbab76bed
commit e21826f6cb
5 changed files with 27 additions and 19 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { IEvent, EventEmitter2 } from 'common/EventEmitter2';
import { ICharSizeService } from 'browser/services/Services';
export class MockCharSizeService implements ICharSizeService {
get hasValidSize(): boolean { return this.width > 0 && this.height > 0; }
onCharSizeChange: IEvent<void> = new EventEmitter2<void>().event;
constructor(public width: number, public height: number) {}
measure(): void {}
}