From: irokas Date: Sun, 2 Jul 2017 11:34:19 +0000 (+0300) Subject: Add test for scrollback fix X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3180a6f6ec24b2ecebfb6ab013f370f2397b1742;p=mirror_xterm.js.git Add test for scrollback fix --- diff --git a/src/test/test.js b/src/test/test.js index cad1dfc..5e18397 100644 --- a/src/test/test.js +++ b/src/test/test.js @@ -55,6 +55,11 @@ describe('xterm.js', function() { it('should throw when setting a non-existant option', function() { assert.throws(xterm.setOption.bind(xterm, 'fake', true)); }); + it('should not allow scrollback less than number of rows', function() { + let setOptionCall = xterm.setOption.bind(xterm, 'scrollback', xterm.rows - 1); + + assert.equal(setOptionCall(), false); + }); }); describe('clear', function() {