Remove terminal onData API test

This commit is contained in:
Daniel Imms
2017-07-13 18:16:15 -07:00
parent 9027646b0f
commit 4f6d1e2a5a

View File

@@ -373,19 +373,4 @@ suite('window namespace tests', () => {
test('terminal, name should set terminal.name', () => {
assert.equal(window.createTerminal('foo').name, 'foo');
});
test('terminal, listening to onData should report data from the pty process', done => {
const terminal = window.createTerminal();
let fromPty = '';
let isFinished = false;
(<any>terminal).onData(data => {
// The text could be split over multiple callbacks
fromPty += data;
if (!isFinished && fromPty.indexOf('test') >= 0) {
isFinished = true;
done();
}
});
terminal.sendText('test', false);
});
});