mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test framework: allow to omit text attribute in expected data
to match null in actual data GitOrigin-RevId: cfed6f6b4162974cb5ef6d725269b5a7b41ea8bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9d1f5882b9
commit
d4a7e73545
@@ -297,9 +297,10 @@ public class ExpectedHighlightingData {
|
||||
|
||||
TextAttributes forcedAttributes = null;
|
||||
if (foregroundColor != null) {
|
||||
@JdkConstants.FontStyle int ft = Integer.parseInt(fontType);
|
||||
@JdkConstants.FontStyle int ft = fontType != null ? Integer.parseInt(fontType) : 0;
|
||||
forcedAttributes = new TextAttributes(
|
||||
Color.decode(foregroundColor), Color.decode(backgroundColor), Color.decode(effectColor), EffectType.valueOf(effectType), ft);
|
||||
Color.decode(foregroundColor), backgroundColor != null ? Color.decode(backgroundColor) : null, effectColor != null ? Color.decode(effectColor) : null,
|
||||
effectType != null ? EffectType.valueOf(effectType) : null, ft);
|
||||
}
|
||||
|
||||
int rangeStart = textOffset.get();
|
||||
|
||||
Reference in New Issue
Block a user