Skip to content

Commit

Permalink
Add test for onDidCloseTerminal
Browse files Browse the repository at this point in the history
Part of #10925
  • Loading branch information
Tyriar committed Sep 15, 2016
1 parent e3831ee commit 5094cf0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions extensions/vscode-api-tests/src/window.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 5094cf0

Please sign in to comment.