From bae1bd6a420444c6f9a229f608bec14e362d65d1 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sun, 25 Sep 2016 02:02:05 -0700 Subject: [PATCH] Fix tests --- test/viewport-test.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/viewport-test.js b/test/viewport-test.js index 49165744..a9523f52 100644 --- a/test/viewport-test.js +++ b/test/viewport-test.js @@ -46,23 +46,6 @@ describe('Viewport', function () { it('should define Viewport.prototype.onWheel', function () { assert.isDefined(Terminal.Viewport.prototype.onWheel); }); - it('should define Viewport.prototype.setApplicationMode', function () { - assert.isDefined(Terminal.Viewport.prototype.setApplicationMode); - }); - }); - - describe('setApplicationMode', function () { - it('should restrict the scroll area to the viewport', function () { - terminal.lines.push(''); - terminal.lines.push(''); - terminal.rows = 1; - viewport.syncScrollArea(); - assert.equal(scrollAreaElement.style.height, 2 * CHARACTER_HEIGHT + 'px'); - viewport.setApplicationMode(true); - assert.equal(scrollAreaElement.style.height, CHARACTER_HEIGHT + 'px'); - viewport.setApplicationMode(false); - assert.equal(scrollAreaElement.style.height, 2 * CHARACTER_HEIGHT + 'px'); - }); }); describe('refresh', function () {