mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix tests
This commit is contained in:
+3
-1
@@ -14,7 +14,9 @@ describe('Buffer', () => {
|
||||
terminal = <any>{
|
||||
cols: 80,
|
||||
rows: 24,
|
||||
scrollback: 1000
|
||||
options: {
|
||||
scrollback: 1000
|
||||
}
|
||||
};
|
||||
buffer = new Buffer(terminal);
|
||||
});
|
||||
|
||||
@@ -14,7 +14,9 @@ describe('BufferSet', () => {
|
||||
terminal = <any>{
|
||||
cols: 80,
|
||||
rows: 24,
|
||||
scrollback: 1000
|
||||
options: {
|
||||
scrollback: 1000
|
||||
}
|
||||
};
|
||||
bufferSet = new BufferSet(terminal);
|
||||
});
|
||||
|
||||
+1
-1
@@ -779,7 +779,7 @@ export class Terminal extends EventEmitter implements ITerminal {
|
||||
* @param {string} addon The name of the addon to load
|
||||
* @static
|
||||
*/
|
||||
public loadAddon(addon, callback) {
|
||||
public static loadAddon(addon, callback) {
|
||||
if (typeof exports === 'object' && typeof module === 'object') {
|
||||
// CommonJS
|
||||
return require('./addons/' + addon + '/' + addon);
|
||||
|
||||
@@ -26,7 +26,9 @@ describe('Viewport', () => {
|
||||
height: 0
|
||||
}
|
||||
},
|
||||
scrollback: 10
|
||||
options: {
|
||||
scrollback: 10
|
||||
}
|
||||
};
|
||||
terminal.buffers = new BufferSet(terminal);
|
||||
terminal.buffer = terminal.buffers.active;
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('xterm output comparison', function() {
|
||||
var xterm;
|
||||
|
||||
beforeEach(function () {
|
||||
xterm = new Terminal(COLS, ROWS);
|
||||
xterm = new Terminal({ cols: COLS, rows: ROWS });
|
||||
xterm.refresh = function() {};
|
||||
xterm.viewport = {
|
||||
syncScrollArea: function() {}
|
||||
|
||||
Reference in New Issue
Block a user