Author: estherbin
Date: 2008-06-16 12:48:10 -0400 (Mon, 16 Jun 2008)
New Revision: 8800
Modified:
branches/jbosstools-2.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
Log:
Fix
http://jira.jboss.com/jira/browse/JBIDE-2277 in branch.
Modified:
branches/jbosstools-2.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java
===================================================================
---
branches/jbosstools-2.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2008-06-16
16:47:36 UTC (rev 8799)
+++
branches/jbosstools-2.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/ContentAssistantTestCase.java 2008-06-16
16:48:10 UTC (rev 8800)
@@ -14,7 +14,6 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
@@ -86,11 +85,11 @@
}
- protected void checkProposals(String fileName, int offset, String[] proposals, boolean
exactly){
- checkProposals(fileName, null, offset, proposals, exactly);
+ protected ICompletionProposal[] checkProposals(String fileName, int offset, String[]
proposals, boolean exactly){
+ return checkProposals(fileName, null, offset, proposals, exactly);
}
- protected void checkProposals(String fileName, String substring, int offset, String[]
proposals, boolean exactly){
+ protected ICompletionProposal[] checkProposals(String fileName, String substring, int
offset, String[] proposals, boolean exactly){
openEditor(fileName);
int position = 0;
@@ -122,6 +121,7 @@
if(exactly)
assertTrue("Some other proposals was found!", result.length ==
proposals.length);
+ return result;
}
protected boolean compareProposal(String proposalName, ICompletionProposal[]
proposals){