fix failing tests
This commit is contained in:
@@ -7,7 +7,7 @@ import { assert, expect } from 'chai';
|
|||||||
import { MockViewport, MockCompositionHelper, MockRenderer, TestTerminal } from './TestUtils.test';
|
import { MockViewport, MockCompositionHelper, MockRenderer, TestTerminal } from './TestUtils.test';
|
||||||
import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
|
import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
|
||||||
import { CellData } from 'common/buffer/CellData';
|
import { CellData } from 'common/buffer/CellData';
|
||||||
import { IBufferService } from 'common/services/Services';
|
import { IBufferService, IUnicodeService } from 'common/services/Services';
|
||||||
import { Linkifier } from 'browser/Linkifier';
|
import { Linkifier } from 'browser/Linkifier';
|
||||||
import { MockLogService, MockOptionsService, MockUnicodeService } from 'common/TestUtils.test';
|
import { MockLogService, MockOptionsService, MockUnicodeService } from 'common/TestUtils.test';
|
||||||
import { IRegisteredLinkMatcher, IMouseZoneManager, IMouseZone } from 'browser/Types';
|
import { IRegisteredLinkMatcher, IMouseZoneManager, IMouseZone } from 'browser/Types';
|
||||||
@@ -1047,7 +1047,7 @@ describe('Terminal', () => {
|
|||||||
// to get the special handling of fullwidth, surrogate and combining chars in the input handler
|
// to get the special handling of fullwidth, surrogate and combining chars in the input handler
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
terminal = new TestTerminal({ cols: 10, rows: 5 });
|
terminal = new TestTerminal({ cols: 10, rows: 5 });
|
||||||
linkifier = new TestLinkifier((terminal as any)._bufferService);
|
linkifier = new TestLinkifier((terminal as any)._bufferService, (terminal as any)._unicodeService);
|
||||||
mouseZoneManager = new TestMouseZoneManager();
|
mouseZoneManager = new TestMouseZoneManager();
|
||||||
linkifier.attachToDom({} as any, mouseZoneManager);
|
linkifier.attachToDom({} as any, mouseZoneManager);
|
||||||
});
|
});
|
||||||
@@ -1372,8 +1372,8 @@ describe('Terminal', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
class TestLinkifier extends Linkifier {
|
class TestLinkifier extends Linkifier {
|
||||||
constructor(bufferService: IBufferService) {
|
constructor(bufferService: IBufferService, unicodeService: IUnicodeService) {
|
||||||
super(bufferService, new MockLogService(), new MockOptionsService(), new MockUnicodeService());
|
super(bufferService, new MockLogService(), new MockOptionsService(), unicodeService);
|
||||||
Linkifier._timeBeforeLatency = 0;
|
Linkifier._timeBeforeLatency = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,12 +9,13 @@ import { IBufferLine } from 'common/Types';
|
|||||||
import { Linkifier } from 'browser/Linkifier';
|
import { Linkifier } from 'browser/Linkifier';
|
||||||
import { BufferLine } from 'common/buffer/BufferLine';
|
import { BufferLine } from 'common/buffer/BufferLine';
|
||||||
import { CellData } from 'common/buffer/CellData';
|
import { CellData } from 'common/buffer/CellData';
|
||||||
import { MockLogService, MockBufferService, MockOptionsService, MockUnicodeService } from 'common/TestUtils.test';
|
import { MockLogService, MockBufferService, MockOptionsService } from 'common/TestUtils.test';
|
||||||
import { IBufferService } from 'common/services/Services';
|
import { IBufferService } from 'common/services/Services';
|
||||||
|
import { UnicodeService } from 'common/services/UnicodeService';
|
||||||
|
|
||||||
class TestLinkifier extends Linkifier {
|
class TestLinkifier extends Linkifier {
|
||||||
constructor(bufferService: IBufferService) {
|
constructor(bufferService: IBufferService) {
|
||||||
super(bufferService, new MockLogService(), new MockOptionsService(), new MockUnicodeService());
|
super(bufferService, new MockLogService(), new MockOptionsService(), new UnicodeService());
|
||||||
Linkifier._timeBeforeLatency = 0;
|
Linkifier._timeBeforeLatency = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user