TestFramework: do not generate descr="null" for <highlight>

GitOrigin-RevId: 762bf12c836d116fbbf02a868373defe6db96c60
This commit is contained in:
Yuriy Artamonov
2020-05-20 08:49:27 +00:00
committed by intellij-monorepo-bot
parent 9e9cbbb1cb
commit 28c0fa66b8
@@ -680,14 +680,14 @@ public class ExpectedHighlightingData {
}
sb.insert(0, text.substring(info.startOffset, endPos));
String str = '<' + severity + " ";
String str = '<' + severity;
String bundleMsg = composeBundleMsg(info, messageBundles);
if (bundleMsg != null) {
str += "bundleMsg=\"" + StringUtil.escapeQuotes(bundleMsg) + '"';
str += " bundleMsg=\"" + StringUtil.escapeQuotes(bundleMsg) + '"';
}
else {
str += "descr=\"" + StringUtil.escapeQuotes(String.valueOf(info.getDescription())) + '"';
else if (info.getSeverity() != HighlightInfoType.HIGHLIGHTED_REFERENCE_SEVERITY) {
str += " descr=\"" + StringUtil.escapeQuotes(String.valueOf(info.getDescription())) + '"';
}
if (showAttributesKeys) {
str += " textAttributesKey=\"" + info.forcedTextAttributesKey + '"';