提交 1e151dd8 编写于 作者: D Daniel Imms

Add some terminal API tests

Fixes #11132
上级 f954045a
......@@ -225,4 +225,19 @@ suite('window namespace tests', () => {
});
});
test('createTerminal, Terminal.name', () => {
var terminal = window.createTerminal('foo');
assert.equal(terminal.name, 'foo');
assert.throws(() => {
terminal.name = 'bar';
}, 'Terminal.name should be readonly');
});
test('createTerminal, immediate Terminal.sendText', () => {
var terminal = window.createTerminal();
// This should not throw an exception
terminal.sendText('echo "foo"');
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册