Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions addons/xterm-addon-webgl/test/WebglRenderer.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ describe('WebGL Renderer Integration Tests', async () => {
});
});

describe.skip('minimumContrastRatio', async () => {
describe('minimumContrastRatio', async () => {
if (areTestsEnabled) {
before(async () => setupBrowser());
after(async () => browser.close());
Expand Down Expand Up @@ -718,9 +718,10 @@ describe('WebGL Renderer Integration Tests', async () => {
window.term.options.theme = ${JSON.stringify(theme)};
window.term.options.minimumContrastRatio = 1;
`);
// Block characters ignore block elements so a different char is used here
await writeSync(page,
`\\x1b[30m\\x1b[31m\\x1b[32m\\x1b[33m\\x1b[34m\\x1b[35m\\x1b[36m\\x1b[37m\\r\\n` +
`\\x1b[90m\\x1b[91m\\x1b[92m\\x1b[93m\\x1b[94m\\x1b[95m\\x1b[96m\\x1b[97m`
`\\x1b[30m\\x1b[31m\\x1b[32m\\x1b[33m\\x1b[34m\\x1b[35m\\x1b[36m\\x1b[37m\\r\\n` +
`\\x1b[90m\\x1b[91m\\x1b[92m\\x1b[93m\\x1b[94m\\x1b[95m\\x1b[96m\\x1b[97m`
);
// Validate before minimumContrastRatio is applied
await pollFor(page, () => getCellColor(1, 1), [0x2e, 0x34, 0x36, 255]);
Expand Down Expand Up @@ -786,9 +787,10 @@ describe('WebGL Renderer Integration Tests', async () => {
window.term.options.theme = ${JSON.stringify(theme)};
window.term.options.minimumContrastRatio = 1;
`);
// Block characters ignore block elements so a different char is used here
await writeSync(page,
`\\x1b[30m\\x1b[31m\\x1b[32m\\x1b[33m\\x1b[34m\\x1b[35m\\x1b[36m\\x1b[37m\\r\\n` +
`\\x1b[90m\\x1b[91m\\x1b[92m\\x1b[93m\\x1b[94m\\x1b[95m\\x1b[96m\\x1b[97m`
`\\x1b[30m\\x1b[31m\\x1b[32m\\x1b[33m\\x1b[34m\\x1b[35m\\x1b[36m\\x1b[37m\\r\\n` +
`\\x1b[90m\\x1b[91m\\x1b[92m\\x1b[93m\\x1b[94m\\x1b[95m\\x1b[96m\\x1b[97m`
);
// Validate before minimumContrastRatio is applied
await pollFor(page, () => getCellColor(1, 1), [0x2e, 0x34, 0x36, 255]);
Expand Down