Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 81667 Details for
Bug 206963
JSP directives not allowed in tag itself
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
unit test
206963-test.patch (text/plain), 2.42 KB, created by
Nitin Dahyabhai
on 2007-10-30 19:18:53 EDT
(
hide
)
Description:
unit test
Filename:
MIME Type:
Creator:
Nitin Dahyabhai
Created:
2007-10-30 19:18:53 EDT
Size:
2.42 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.jsp.ui.tests >Index: src/org/eclipse/jst/jsp/ui/tests/other/ScannerUnitTests.java >=================================================================== >RCS file: /cvsroot/webtools/jst/components/jsp/tests/org.eclipse.jst.jsp.ui.tests/src/org/eclipse/jst/jsp/ui/tests/other/ScannerUnitTests.java,v >retrieving revision 1.20 >diff -u -r1.20 ScannerUnitTests.java >--- src/org/eclipse/jst/jsp/ui/tests/other/ScannerUnitTests.java 10 Apr 2007 17:03:14 -0000 1.20 >+++ src/org/eclipse/jst/jsp/ui/tests/other/ScannerUnitTests.java 30 Oct 2007 23:18:21 -0000 >@@ -29,6 +29,7 @@ > import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion; > import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegionList; > import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion; >+import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionCollection; > import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer; > import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList; > import org.eclipse.wst.sse.core.internal.text.CoreNodeList; >@@ -520,6 +521,16 @@ > > testContent(setUpXML("hello world")); > } >+ >+ public void testDirectiveInTagBody() { >+ String text = "<BODY <%@ include file=\"commonEventHandlers.jspf\" %> dir=\"ltr\"> "; >+ IStructuredDocumentRegionList documentRegionList = setUpJSP(text); >+ verifyLengths(0, documentRegionList, text); >+ >+ 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}); >+ ITextRegionCollection coll = (ITextRegionCollection) documentRegionList.item(0).getRegions().get(2); >+ 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}); >+ } > > public void testDollarsign_Leading() { > IStructuredDocumentRegionList nodes = setUpJSP("<a type=\"$ \"/>");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206963
:
81657
| 81667