Tweak canvas renderer test

This commit is contained in:
Daniel Imms
2023-09-08 12:22:38 -07:00
parent 71eb897708
commit 408240dd97
2 changed files with 4 additions and 5 deletions
@@ -16,7 +16,7 @@ test.beforeAll(async ({ browser }) => {
await openTerminal(ctx);
ctxWrapper.value = ctx;
await ctx.page.evaluate(`
window.addon = new WebglAddon(true);
window.addon = new window.WebglAddon(true);
window.term.loadAddon(window.addon);
`);
});
@@ -35,7 +35,7 @@ test.describe('WebGL Renderer Integration Tests', async () => {
strictEqual(await ctx.page.evaluate(`document.querySelectorAll('.xterm canvas').length`), 0);
// Re-create webgl addon to avoid side effects impacting other tests
await ctx.page.evaluate(`
window.addon = new WebglAddon(true);
window.addon = new window.WebglAddon(true);
window.term.loadAddon(window.addon);
`);
});