提交 1ce8b91b 编写于 作者: A Andre Weinand

fix tests; fixes #7408

上级 d681654a
......@@ -139,36 +139,45 @@ suite('Workbench - TerminalConfigHelper', () => {
integrated: {
shell: {
linux: 'foo'
},
shellArgs: {
linux: []
}
}
}
});
configHelper = new TerminalConfigHelper(Platform.Linux, configurationService, fixture);
assert.equal(configHelper.getShell(), 'foo', 'terminal.integrated.shell.linux should be selected on Linux');
assert.equal(configHelper.getShell().executable, 'foo', 'terminal.integrated.shell.linux should be selected on Linux');
configurationService = new MockConfigurationService({
terminal: {
integrated: {
shell: {
osx: 'foo'
},
shellArgs: {
osx: []
}
}
}
});
configHelper = new TerminalConfigHelper(Platform.Mac, configurationService, fixture);
assert.equal(configHelper.getShell(), 'foo', 'terminal.integrated.shell.osx should be selected on OS X');
assert.equal(configHelper.getShell().executable, 'foo', 'terminal.integrated.shell.osx should be selected on OS X');
configurationService = new MockConfigurationService({
terminal: {
integrated: {
shell: {
windows: 'foo'
},
shellArgs: {
windows: []
}
}
}
});
configHelper = new TerminalConfigHelper(Platform.Windows, configurationService, fixture);
assert.equal(configHelper.getShell(), 'foo', 'terminal.integrated.shell.windows should be selected on Windows');
assert.equal(configHelper.getShell().executable, 'foo', 'terminal.integrated.shell.windows should be selected on Windows');
});
test('TerminalConfigHelper - getTheme', function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册