IDEA-189709: fix JavaGotoSuperTest#testLambdaMarker

This commit is contained in:
Sergey Malenkov
2018-10-23 02:05:45 +03:00
parent d4e87d1ded
commit 9d8f9bd666
2 changed files with 3 additions and 2 deletions
@@ -64,7 +64,7 @@ public final class GutterTooltipHelper {
@NotNull Function<E, String> function,
@NotNull Predicate<E> predicate,
@Nullable String actionId) {
StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder("<html><body>");
if (prefix != null) sb.append(prefix);
for (E element : elements) {
String elementPrefix = function.apply(element);
@@ -72,6 +72,7 @@ public final class GutterTooltipHelper {
appendElement(sb, element, predicate.test(element));
}
appendContextHelp(sb, actionId);
sb.append("</body></html>");
return sb.toString();
}
@@ -64,7 +64,7 @@ public class JavaGotoSuperTest extends LightDaemonAnalyzerTestCase {
if (CodeInsightTestFixtureImpl.processGuttersAtCaret(getEditor(), getProject(), mark -> {
Shortcut shortcut = ActionManager.getInstance().getAction(IdeActions.ACTION_GOTO_SUPER).getShortcutSet().getShortcuts()[0];
assertEquals(
"<html><body>Overrides method in <a href=\"#javaClass/I\">I</a><br><div style='margin-top: 5px'><font size='2'>Click or press " +
"<html><body>Overrides method in <a href=\"#element/I#run\"><code>I</code></a><br><div style='margin-top: 5px'><font size='2' color='787878'>Press " +
KeymapUtil.getShortcutText(shortcut) +
" to navigate</font></div></body></html>",
mark.getTooltipText());