mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge branch 'master' into webfonts-addon
This commit is contained in:
@@ -34,7 +34,10 @@ test.describe('WebLinksAddon', () => {
|
||||
|
||||
test.beforeEach(async () => {
|
||||
await ctx.page.evaluate(`
|
||||
window.term.reset()
|
||||
window.term.reset();
|
||||
`);
|
||||
await timeout(50);
|
||||
await ctx.page.evaluate(`
|
||||
window._linkaddon?.dispose();
|
||||
window._linkaddon = new WebLinksAddon();
|
||||
window.term.loadAddon(window._linkaddon);
|
||||
|
||||
@@ -63,6 +63,8 @@ async function run() {
|
||||
console.error(run.error);
|
||||
process.exit(run.status ?? -1);
|
||||
}
|
||||
|
||||
process.exit(run.status);
|
||||
}
|
||||
}
|
||||
run();
|
||||
|
||||
@@ -690,7 +690,7 @@ test.describe('API Integration Tests', () => {
|
||||
window.term = new Terminal();
|
||||
window.term.dispose();
|
||||
`);
|
||||
strictEqual(await ctx.page.evaluate(`window.term._core._isDisposed`), true);
|
||||
strictEqual(await ctx.page.evaluate(`window.term._core._store._isDisposed`), true);
|
||||
});
|
||||
|
||||
test('dispose (opened)', async () => {
|
||||
@@ -702,7 +702,7 @@ test.describe('API Integration Tests', () => {
|
||||
} catch {}
|
||||
}
|
||||
`);
|
||||
strictEqual(await ctx.page.evaluate(`window.term._core._isDisposed`), true);
|
||||
strictEqual(await ctx.page.evaluate(`window.term._core._store._isDisposed`), true);
|
||||
});
|
||||
|
||||
test('render when visible after hidden', async () => {
|
||||
|
||||
Reference in New Issue
Block a user