Also test exit bracketed paste mode

This commit is contained in:
Daniel Imms
2019-06-01 14:31:36 -07:00
parent 2925e976e0
commit 86d410bfe9
+3 -1
View File
@@ -230,12 +230,14 @@ describe('InputHandler Integration Tests', function(): void {
});
});
describe.only('SM: Set Mode', () => {
describe('SM: Set Mode', () => {
describe('CSI ? Pm h', () => {
it('Pm = 2004, Set bracketed paste mode', async function(): Promise<any> {
assert.equal(await simulatePaste('foo'), 'foo');
await page.evaluate(`window.term.write('\x1b[?2004h')`);
assert.equal(await simulatePaste('bar'), '\x1b[200~bar\x1b[201~');
await page.evaluate(`window.term.write('\x1b[?2004l')`);
assert.equal(await simulatePaste('baz'), 'baz');
});
});
});