Chris2011 commented on code in PR #4485:
URL: https://github.com/apache/netbeans/pull/4485#discussion_r2907535909
##########
ide/csl.api/test/unit/src/org/netbeans/modules/csl/api/test/CslTestBase.java:
##########
@@ -4384,8 +4384,11 @@ protected ComputedHints computeHints(final NbTestCase
test, final Rule hint, Str
}
}
if (HintsSettings.getSeverity(manager, ucr) ==
HintSeverity.CURRENT_LINE_WARNING) {
- manager.setTestingRules(null,
Collections.EMPTY_MAP, testHints, null);
+ manager.setTestingRules(null, testHints,
testHints, null);
provider.computeSuggestions(manager, context,
hints, caretOffset);
+ } else if(HintsSettings.getSeverity(manager, ucr) ==
HintSeverity.ERROR || HintsSettings.getSeverity(manager, ucr) ==
HintSeverity.WARNING) {
+ manager.setTestingRules(null, testHints,
testHints, null);
+ provider.computeErrors(manager, context, hints,
new ArrayList<Error>());
Review Comment:
I revert the CslTestBase code and added new testst and run the tests in Html
Editor and everysthing is green now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists