Add some tests, fix app keypad mode bug

This commit is contained in:
Daniel Imms
2016-08-04 18:34:04 -07:00
parent 0a34885fbc
commit 7048f6edf7
3 changed files with 95 additions and 14 deletions
+3 -3
View File
@@ -19,14 +19,14 @@ describe('CompositionHelper', function () {
top: 0
},
textContent: ''
}
};
textarea = {
value: '',
style: {
left: 0,
top: 0
}
}
};
terminal = {
element: {
querySelector: function () {
@@ -36,7 +36,7 @@ describe('CompositionHelper', function () {
handler: function (text) {
handledText += text;
}
}
};
handledText = '';
compositionHelper = new Terminal.CompositionHelper(textarea, compositionView, terminal);
});