#1532: Add test to ensure terminal reset does not affect cursorState

This commit is contained in:
7PH
2018-06-26 10:36:11 +02:00
parent f1504e5c0f
commit 0ad7b8e27b
+8
View File
@@ -120,6 +120,14 @@ describe('term.js addons', () => {
});
});
describe('reset', () => {
it('should not affect cursorState', () => {
term.cursorState = 1;
term.reset();
assert.equal(term.cursorState, 1);
});
});
describe('clear', () => {
it('should clear a buffer equal to rows', () => {
const promptLine = term.buffer.lines.get(term.buffer.ybase + term.buffer.y);