serialize from the bottom of the terminal

This commit is contained in:
javacs3
2019-07-14 23:28:08 +08:00
parent fe3520c685
commit bca90245c8
3 changed files with 16 additions and 7 deletions
@@ -83,7 +83,7 @@ describe('SerializeAddon', () => {
window.term.write(${util.inspect(lines.join('\r\n'))});
`);
assert.equal(await page.evaluate(`serializeAddon.serialize(${halfRows});`), lines.slice(0, halfRows).join('\r\n'));
assert.equal(await page.evaluate(`serializeAddon.serialize(${halfRows});`), lines.slice(halfRows, 2 * halfRows).join('\r\n'));
});
it('serialize 0 rows of content', async function (): Promise<any> {