From bf209fb71ff4888efc5bafb7e9f010b971f07ffd Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 14 Sep 2019 11:53:42 -0700 Subject: [PATCH] Add tests for IL (CSI Ps L) Part of #2117 --- test/api/InputHandler.api.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/api/InputHandler.api.ts b/test/api/InputHandler.api.ts index 9ca0c943..ae1ecda8 100644 --- a/test/api/InputHandler.api.ts +++ b/test/api/InputHandler.api.ts @@ -196,6 +196,16 @@ describe('InputHandler Integration Tests', function(): void { assert.deepEqual(await getLinesAsArray(5), [' 4', ' 5', 'abc', 'def', 'ghi']); }); + it.only('IL: Insert Ps Line(s) (default = 1) - CSI Ps L', async function(): Promise { + await page.evaluate(` + // Default + window.term.write('foo\x1b[La') + // Explicit + window.term.write('\x1b[2Lb') + `); + assert.deepEqual(await getLinesAsArray(4), ['b', '', 'a', 'foo']); + }); + describe('DSR: Device Status Report', () => { it('Status Report - CSI 5 n', async function(): Promise { await page.evaluate(`