Enable multiline-comment-style with starred-block to require JSDoc-style block comments with content on separate lines from the opening delimiter. Auto-fix existing violations across the codebase. Fixes #5899 Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
/**
|
|
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
|
|
* @license MIT
|
|
*/
|
|
|
|
import test from '@playwright/test';
|
|
import { ISharedRendererTestContext, injectSharedRendererTests, injectSharedRendererTestsStandalone } from '../../../test/playwright/SharedRendererTests';
|
|
import { ITestContext, createTestContext, openTerminal } from '../../../test/playwright/TestUtils';
|
|
import { platform } from 'os';
|
|
|
|
let ctx: ITestContext;
|
|
const ctxWrapper: ISharedRendererTestContext = { value: undefined } as any;
|
|
test.beforeAll(async ({ browser }) => {
|
|
ctx = await createTestContext(browser);
|
|
await openTerminal(ctx);
|
|
ctxWrapper.value = ctx;
|
|
await ctx.page.evaluate(`
|
|
try {
|
|
window.addon = new window.WebglAddon(true);
|
|
window.term.loadAddon(window.addon);
|
|
} catch (e) {}
|
|
`);
|
|
});
|
|
test.afterAll(async () => await ctx.page.close());
|
|
|
|
test.describe('WebGL Renderer Integration Tests', async () => {
|
|
/*
|
|
* HACK: webgl2 is often not supported in headless firefox on Linux
|
|
* https://github.com/microsoft/playwright/issues/11566
|
|
* also disable safari due to #5852
|
|
*/
|
|
if (platform() === 'linux') {
|
|
test.skip(({ browserName }) => browserName === 'firefox' || browserName === 'webkit');
|
|
}
|
|
|
|
injectSharedRendererTests(ctxWrapper);
|
|
injectSharedRendererTestsStandalone(ctxWrapper, async () => {
|
|
await ctx.page.evaluate(`
|
|
try {
|
|
window.addon = new window.WebglAddon(true);
|
|
window.term.loadAddon(window.addon);
|
|
} catch (e) {}
|
|
`);
|
|
});
|
|
});
|