parent
e3831ee39c
commit
5094cf079e
1 changed files with 9 additions and 0 deletions
|
@ -280,4 +280,13 @@ suite('window namespace tests', () => {
|
||||||
// This should not throw an exception
|
// This should not throw an exception
|
||||||
terminal.sendText('echo "foo"');
|
terminal.sendText('echo "foo"');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('onDidCloseTerminal, event fires when terminal is disposed', (done) => {
|
||||||
|
var terminal = window.createTerminal();
|
||||||
|
window.onDidCloseTerminal((eventTerminal) => {
|
||||||
|
assert.equal(terminal, eventTerminal);
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
terminal.dispose();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue