mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #5598 from Tyriar/5588
Fix exception on resize during write
This commit is contained in:
@@ -457,6 +457,16 @@ test.describe('API Integration Tests', () => {
|
||||
await pollFor(ctx.page, `window.calls`, [[10, 5], [20, 15]]);
|
||||
});
|
||||
|
||||
test('resize during write should not throw', async () => {
|
||||
await openTerminal(ctx, { rows: 50, cols: 80 });
|
||||
const largeData = 'x'.repeat(10000);
|
||||
await ctx.proxy.write(largeData);
|
||||
await ctx.proxy.resize(80, 10);
|
||||
await ctx.proxy.write(largeData);
|
||||
await ctx.proxy.resize(80, 5);
|
||||
await ctx.proxy.write(largeData);
|
||||
});
|
||||
|
||||
test('onTitleChange', async () => {
|
||||
await openTerminal(ctx);
|
||||
await ctx.page.evaluate(`
|
||||
|
||||
Reference in New Issue
Block a user