mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix api test
This commit is contained in:
@@ -297,7 +297,7 @@ describe('API Integration Tests', function(): void {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Events', () => {
|
||||
describe.only('Events', () => {
|
||||
it('onCursorMove', async () => {
|
||||
await openTerminal(page);
|
||||
await page.evaluate(`
|
||||
@@ -414,11 +414,11 @@ describe('API Integration Tests', function(): void {
|
||||
await openTerminal(page);
|
||||
await page.evaluate(`
|
||||
window.calls = [];
|
||||
window.term.onBell(e => window.calls.push(e));
|
||||
window.term.onBell(() => window.calls.push(true));
|
||||
`);
|
||||
await pollFor(page, `window.calls`, []);
|
||||
await page.evaluate(`window.term.write('\\a')`);
|
||||
await pollFor(page, `window.calls`, ['foo']);
|
||||
await page.evaluate(`window.term.write('\\x07')`);
|
||||
await pollFor(page, `window.calls`, [true]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user