When a with bg is selected, the cell's regular background will be blended with 50% opacity selectionBackground in order to retain the bg color info as well as getting the color to change and getting decent contrast. This commit also fixes a terrible, nasty bug where the standalone shared renderer tests were causing the terminal to open multiple times and not get the WebGL addon activated the second time. So some tests were actually testing the DOM renderer :o Fixes #4918
26 lines
815 B
TypeScript
26 lines
815 B
TypeScript
/**
|
|
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
|
|
* @license MIT
|
|
*/
|
|
|
|
import { test } from '@playwright/test';
|
|
import { ITestContext, createTestContext, openTerminal } from './TestUtils';
|
|
import { ISharedRendererTestContext, injectSharedRendererTestsStandalone, injectSharedRendererTests } from './SharedRendererTests';
|
|
|
|
let ctx: ITestContext;
|
|
const ctxWrapper: ISharedRendererTestContext = {
|
|
value: undefined,
|
|
skipCanvasExceptions: true
|
|
} as any;
|
|
test.beforeAll(async ({ browser }) => {
|
|
ctx = await createTestContext(browser);
|
|
ctxWrapper.value = ctx;
|
|
await openTerminal(ctx);
|
|
});
|
|
test.afterAll(async () => await ctx.page.close());
|
|
|
|
test.describe('DOM Renderer Integration Tests', () => {
|
|
injectSharedRendererTests(ctxWrapper);
|
|
injectSharedRendererTestsStandalone(ctxWrapper);
|
|
});
|