|
6 | 6 | import { IImage32, decodePng } from '@lunapaint/png-codec'; |
7 | 7 | import { LocatorScreenshotOptions, test } from '@playwright/test'; |
8 | 8 | import { ITheme } from '@xterm/xterm'; |
9 | | -import { ITestContext, MaybeAsync, openTerminal, pollFor, pollForApproximate } from './TestUtils'; |
| 9 | +import { ITestContext, MaybeAsync, openTerminal, pollFor, pollForApproximate, timeout } from './TestUtils'; |
10 | 10 |
|
11 | 11 | export interface ISharedRendererTestContext { |
12 | 12 | value: ITestContext; |
@@ -989,13 +989,15 @@ export function injectSharedRendererTests(ctx: ISharedRendererTestContext): void |
989 | 989 | }; |
990 | 990 | await ctx.value.page.evaluate(`window.term.options.theme = ${JSON.stringify(theme)};`); |
991 | 991 | await ctx.value.proxy.focus(); |
992 | | - await ctx.value.proxy.writeln('\x1b[41m red bg'); |
993 | | - await ctx.value.proxy.writeln('\x1b[7m inverse'); |
994 | | - await ctx.value.proxy.writeln('\x1b[31;7m red fg inverse'); |
| 992 | + await ctx.value.proxy.writeln('\x1b[41m red bg\x1b[0m'); |
| 993 | + await ctx.value.proxy.writeln('\x1b[7m inverse\x1b[0m'); |
| 994 | + await ctx.value.proxy.writeln('\x1b[31;7m red fg inverse\x1b[0m'); |
| 995 | + await ctx.value.proxy.writeln('\x1b[48:2:0:204:0:0m red truecolor bg\x1b[0m'); |
995 | 996 | await ctx.value.proxy.selectAll(); |
996 | | - await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 1), [230,128,128,255]); |
997 | | - await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 2), [255,255,255,255]); |
998 | | - await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 3), [230,128,128,255]); |
| 997 | + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 1), [230, 128, 128, 255]); |
| 998 | + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 2), [255, 255, 255, 255]); |
| 999 | + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 3), [230, 128, 128, 255]); |
| 1000 | + await pollFor(ctx.value.page, () => getCellColor(ctx.value, 1, 4), [230, 128, 128, 255]); |
999 | 1001 | }); |
1000 | 1002 | test('powerline decorative symbols', async () => { |
1001 | 1003 | const theme: ITheme = { |
|
0 commit comments