mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-114105 Find String literals only java strings in JSP not found
This commit is contained in:
@@ -595,6 +595,23 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
runFindInCommentsAndLiterals(findManager, findModel, text, "cs");
|
||||
}
|
||||
|
||||
public void testFindInJsp() throws Exception{
|
||||
FindManager findManager = FindManager.getInstance(myProject);
|
||||
|
||||
FindModel findModel = new FindModel();
|
||||
findModel.setStringToFind("done");
|
||||
findModel.setWholeWordsOnly(false);
|
||||
findModel.setFromCursor(false);
|
||||
findModel.setGlobal(true);
|
||||
findModel.setMultipleFiles(false);
|
||||
findModel.setProjectScope(true);
|
||||
|
||||
String text = "<!--done-->\n<%--done-->\n<% /*done*/ %>";
|
||||
|
||||
findModel.setInCommentsOnly(true);
|
||||
runFindForwardAndBackward(findManager, findModel, text, "jsp");
|
||||
}
|
||||
|
||||
public void testFindInLiteralToSkipQuotes() throws Exception{
|
||||
FindManager findManager = FindManager.getInstance(myProject);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user