Author: vrubezhny
Date: 2009-10-23 22:33:13 -0400 (Fri, 23 Oct 2009)
New Revision: 18280
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide2016Test/.project
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
Log:
JBIDE-5059: Fix JstJspAllTests.testJsfJspJbide2016Test
JBIDE-5060: Fix JstJspAllTests.testCAForELinStyleTest
The test cases are fixed in trunk
Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide2016Test/.project
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide2016Test/.project 2009-10-23
23:28:02 UTC (rev 18279)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide2016Test/.project 2009-10-24
02:33:13 UTC (rev 18280)
@@ -15,6 +15,11 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
@@ -22,5 +27,6 @@
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.jboss.tools.jsf.jsfnature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
</natures>
</projectDescription>
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2009-10-23
23:28:02 UTC (rev 18279)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2009-10-24
02:33:13 UTC (rev 18280)
@@ -15,6 +15,7 @@
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
+import org.jboss.tools.jst.jsp.contentassist.AutoContentAssistantProposal;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
import org.jboss.tools.jst.jsp.test.TestUtil;
@@ -94,7 +95,12 @@
protected boolean compareProposal(String proposalName, ICompletionProposal[]
proposals){
for (int i = 0; i < proposals.length; i++) {
- if(proposals[i].getDisplayString().toLowerCase().equals(proposalName.toLowerCase()))
return true;
+ if (proposals[i] instanceof AutoContentAssistantProposal) {
+ AutoContentAssistantProposal ap = (AutoContentAssistantProposal)proposals[i];
+ if (ap.getReplacementString().toLowerCase().equals(proposalName.toLowerCase()))
return true;
+ } else {
+ if(proposals[i].getDisplayString().toLowerCase().equals(proposalName.toLowerCase()))
return true;
+ }
}
return false;
}
Show replies by date