mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
fix private access in integration tests
This commit is contained in:
@@ -113,7 +113,7 @@ async function openTerminal(options: ITerminalOptions = {}): Promise<void> {
|
||||
async function writeSync(data: string): Promise<void> {
|
||||
await page.evaluate(`window.term.write('${data}');`);
|
||||
while (true) {
|
||||
if (await page.evaluate(`window.term._core.writeBuffer.length === 0`)) {
|
||||
if (await page.evaluate(`window.term._core._writeBuffer.length === 0`)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ async function openTerminal(options: ITerminalOptions = {}): Promise<void> {
|
||||
async function writeSync(data: string): Promise<void> {
|
||||
await page.evaluate(`window.term.write('${data}');`);
|
||||
while (true) {
|
||||
if (await page.evaluate(`window.term._core.writeBuffer.length === 0`)) {
|
||||
if (await page.evaluate(`window.term._core._writeBuffer.length === 0`)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user