mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #4209 from Tyriar/todo_onData_event_test
Re-enable onData event test
This commit is contained in:
@@ -9,6 +9,7 @@ import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
|
||||
import { CellData } from 'common/buffer/CellData';
|
||||
import { MockUnicodeService } from 'common/TestUtils.test';
|
||||
import { IMarker } from 'common/Types';
|
||||
import { ICoreService } from 'common/services/Services';
|
||||
|
||||
const INIT_COLS = 80;
|
||||
const INIT_ROWS = 24;
|
||||
@@ -47,11 +48,10 @@ describe('Terminal', () => {
|
||||
});
|
||||
|
||||
describe('events', () => {
|
||||
// TODO: Add an onData test back
|
||||
// it('should fire the onData evnet', (done) => {
|
||||
// term.onData(() => done());
|
||||
// term.handler('fake');
|
||||
// });
|
||||
it('should fire the onData evnet', (done) => {
|
||||
term.onData(() => done());
|
||||
term.coreService.triggerDataEvent('fake');
|
||||
});
|
||||
it('should fire the onCursorMove event', () => {
|
||||
return new Promise<void>(async r => {
|
||||
term.onCursorMove(() => r());
|
||||
|
||||
Reference in New Issue
Block a user