Author: scabanovich
Date: 2010-04-21 10:16:30 -0400 (Wed, 21 Apr 2010)
New Revision: 21584
Modified:
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CAForCompositeComponentTest.java
Log:
Modified:
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml
===================================================================
---
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml 2010-04-21
14:10:23 UTC (rev 21583)
+++
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml 2010-04-21
14:16:30 UTC (rev 21584)
@@ -4,5 +4,7 @@
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://java.sun.com/jsf/composite">
<composite:interface>
<composite:attribute name="a2"/>
+ <composite:attribute name="b3"/>
</composite:interface>
+ #{cc.attrs.}
</html>
Modified:
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CAForCompositeComponentTest.java
===================================================================
---
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CAForCompositeComponentTest.java 2010-04-21
14:10:23 UTC (rev 21583)
+++
branches/jbosstools-3.1.x/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CAForCompositeComponentTest.java 2010-04-21
14:16:30 UTC (rev 21584)
@@ -7,6 +7,7 @@
boolean makeCopy = true;
private static final String PROJECT_NAME = "CAForCompositeComponentTest";
private static final String PAGE_NAME = "/WebContent/pages/greeting.xhtml";
+ private static final String TAG_NAME =
"/WebContent/resources/sample/tag2.xhtml";
public void setUp() throws Exception {
provider = new TestProjectProvider("org.jboss.tools.jst.jsp.test", null,
PROJECT_NAME, makeCopy);
@@ -31,4 +32,16 @@
};
checkProposals(PAGE_NAME, "<sample:tag />", 12, proposals, false);
}
+
+ /**
+ * JBIDE-5941
+ */
+ public void testCAForCCAttrs(){
+ String[] proposals = {
+ "cc.attrs.a2", "cc.attrs.b3", "cc.attrs.onclick"
+ };
+
+ checkProposals(TAG_NAME, "#{cc.attrs.}", 11, proposals, false);
+
+ }
}