Testing framework now allows checking only specified warnings and highlightings (bug fixed)

(c280b5094e)
This commit is contained in:
Anton Makeev
2014-10-29 13:53:42 +01:00
parent 9b615d3dd1
commit a584c7e6f6
@@ -407,7 +407,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
@Override
public long checkHighlighting(final boolean checkWarnings, final boolean checkInfos, final boolean checkWeakWarnings, boolean ignoreExtraHighlighting) {
try {
return collectAndCheckHighlighting(checkWarnings, checkInfos, checkWeakWarnings);
return collectAndCheckHighlighting(checkWarnings, checkInfos, checkWeakWarnings, ignoreExtraHighlighting);
}
catch (Exception e) {
throw new RuntimeException(e);
@@ -1501,8 +1501,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
private long collectAndCheckHighlighting(boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings,
boolean ignoreExtraHighlighting) throws Exception {
ExpectedHighlightingData data = new ExpectedHighlightingData(myEditor.getDocument(),
checkWarnings, checkWeakWarnings, ignoreExtraHighlighting,
checkInfos, getHostFile());
checkWarnings, checkWeakWarnings, checkInfos, ignoreExtraHighlighting, getHostFile());
data.init();
return collectAndCheckHighlighting(data);
}