|
Lines 29-34
Link Here
|
| 29 |
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion; |
29 |
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion; |
| 30 |
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegionList; |
30 |
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegionList; |
| 31 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; |
31 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; |
|
|
32 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionCollection; |
| 32 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer; |
33 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer; |
| 33 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; |
34 |
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; |
| 34 |
import org.eclipse.wst.sse.core.internal.text.CoreNodeList; |
35 |
import org.eclipse.wst.sse.core.internal.text.CoreNodeList; |
|
Lines 520-525
Link Here
|
| 520 |
|
521 |
|
| 521 |
testContent(setUpXML("hello world")); |
522 |
testContent(setUpXML("hello world")); |
| 522 |
} |
523 |
} |
|
|
524 |
|
| 525 |
public void testDirectiveInTagBody() { |
| 526 |
String text = "<BODY <%@ include file=\"commonEventHandlers.jspf\" %> dir=\"ltr\"> "; |
| 527 |
IStructuredDocumentRegionList documentRegionList = setUpJSP(text); |
| 528 |
verifyLengths(0, documentRegionList, text); |
| 529 |
|
| 530 |
checkSimpleRegionTypes(documentRegionList.item(0).getRegions(), new String[]{DOMRegionContext.XML_TAG_OPEN, DOMRegionContext.XML_TAG_NAME, DOMRegionContext.XML_TAG_ATTRIBUTE_NAME, DOMRegionContext.XML_TAG_ATTRIBUTE_NAME, DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS, DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE, DOMRegionContext.XML_TAG_CLOSE}); |
| 531 |
ITextRegionCollection coll = (ITextRegionCollection) documentRegionList.item(0).getRegions().get(2); |
| 532 |
checkSimpleRegionTypes(coll.getRegions(), new String[]{DOMJSPRegionContexts.JSP_DIRECTIVE_OPEN, DOMRegionContext.WHITE_SPACE, DOMJSPRegionContexts.JSP_DIRECTIVE_NAME, DOMRegionContext.WHITE_SPACE, DOMRegionContext.XML_TAG_ATTRIBUTE_NAME, DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS, DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE, DOMRegionContext.WHITE_SPACE, DOMJSPRegionContexts.JSP_DIRECTIVE_CLOSE}); |
| 533 |
} |
| 523 |
|
534 |
|
| 524 |
public void testDollarsign_Leading() { |
535 |
public void testDollarsign_Leading() { |
| 525 |
IStructuredDocumentRegionList nodes = setUpJSP("<a type=\"$ \"/>"); |
536 |
IStructuredDocumentRegionList nodes = setUpJSP("<a type=\"$ \"/>"); |