未验证 提交 e61b47b9 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #40197 from shobhitchittora/terminal-max-font-size-test

Adding test for integrated terminal font-size overflow
......@@ -104,6 +104,21 @@ suite('Workbench - TerminalConfigHelper', () => {
configHelper.panelContainer = fixture;
assert.equal(configHelper.getFont().fontSize, 6, 'The minimum terminal font size should be used when terminal.integrated.fontSize less than it');
configurationService = new MockConfigurationService({
editor: {
fontFamily: 'foo'
},
terminal: {
integrated: {
fontFamily: 0,
fontSize: 1500
}
}
});
configHelper = new TerminalConfigHelper(configurationService, null, null, null);
configHelper.panelContainer = fixture;
assert.equal(configHelper.getFont().fontSize, 25, 'The maximum terminal font size should be used when terminal.integrated.fontSize more than it');
configurationService = new MockConfigurationService({
editor: {
fontFamily: 'foo',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册