mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Testing framework now allows checking only specified warnings and highlightings (bug fixed)
(c280b5094e)
This commit is contained in:
+2
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user