From 3180a6f6ec24b2ecebfb6ab013f370f2397b1742 Mon Sep 17 00:00:00 2001 From: irokas Date: Sun, 2 Jul 2017 14:34:19 +0300 Subject: [PATCH] Add test for scrollback fix --- src/test/test.js | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- 2.39.2