FIR IDE: ignore not passing highlighting tests

This commit is contained in:
Ilya Kirillov
2020-05-27 13:03:21 +03:00
parent 65b22ebfa9
commit 1b8ea31172
12 changed files with 32 additions and 5 deletions
@@ -54,12 +54,20 @@ public abstract class AbstractHighlightingTest extends KotlinLightCodeInsightFix
});
}
private static void withExpectedDuplicatedHighlighting(boolean expectedDuplicatedHighlighting, Runnable runnable) {
private void withExpectedDuplicatedHighlighting(boolean expectedDuplicatedHighlighting, Runnable runnable) {
if (!expectedDuplicatedHighlighting) {
runnable.run();
return;
}
ExpectedHighlightingData.expectedDuplicatedHighlighting(runnable);
try {
ExpectedHighlightingData.expectedDuplicatedHighlighting(runnable);
} catch (IllegalStateException e) {
if (isFirPlugin()) {
runnable.run();
} else {
throw e;
}
}
}
}