mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Fix tests from terminal API revert
This commit is contained in:
@@ -253,7 +253,7 @@ suite('window namespace tests', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('createTerminal, Terminal.name', () => {
|
test('createTerminal, Terminal.name', () => {
|
||||||
var terminal = window.createTerminal({ name: 'foo' });
|
var terminal = window.createTerminal('foo');
|
||||||
assert.equal(terminal.name, 'foo');
|
assert.equal(terminal.name, 'foo');
|
||||||
|
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
@@ -262,7 +262,7 @@ suite('window namespace tests', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('createTerminal, immediate Terminal.sendText', () => {
|
test('createTerminal, immediate Terminal.sendText', () => {
|
||||||
var terminal = window.createTerminal({});
|
var terminal = window.createTerminal();
|
||||||
// This should not throw an exception
|
// This should not throw an exception
|
||||||
terminal.sendText('echo "foo"');
|
terminal.sendText('echo "foo"');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user