Merge remote-tracking branch 'ups/master' into v3
This commit is contained in:
@@ -144,5 +144,16 @@ describe('Buffer', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('row and column increased', () => {
|
||||
it('should resize properly', () => {
|
||||
buffer.fillViewportRows();
|
||||
buffer.resize(INIT_COLS + 5, INIT_ROWS + 5);
|
||||
assert.equal(buffer.lines.length, INIT_ROWS + 5);
|
||||
for (let i = 0; i < INIT_ROWS + 5; i++) {
|
||||
assert.equal(buffer.lines.get(i).length, INIT_COLS + 5);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user