Add test for onDidCloseTerminal

Part of #10925
This commit is contained in:
Daniel Imms 2016-09-15 12:17:39 -07:00
parent e3831ee39c
commit 5094cf079e

View file

@ -280,4 +280,13 @@ suite('window namespace tests', () => {
// This should not throw an exception
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();
});
});