Author: scabanovich
Date: 2010-04-21 10:20:47 -0400 (Wed, 21 Apr 2010)
New Revision: 21586
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml
Log:
https://jira.jboss.org/jira/browse/JBIDE-5941
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml 2010-04-21
14:18:06 UTC (rev 21585)
+++
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/CAForCompositeComponentTest/WebContent/resources/sample/tag2.xhtml 2010-04-21
14:20:47 UTC (rev 21586)
@@ -1,47 +1,10 @@
-package org.jboss.tools.jst.jsp.test.ca;
-
-import org.jboss.tools.common.test.util.TestProjectProvider;
-
-public class CAForCompositeComponentTest extends ContentAssistantTestCase{
- TestProjectProvider provider = null;
- 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);
- project = provider.getProject();
- }
-
- protected void tearDown() throws Exception {
- if(provider != null) {
- provider.dispose();
- }
- }
-
- public void testCAForCompositeComponent(){
- String[] proposals = {
- "sample:tag", "sample:tag2", "sample:tag3"
- };
-
- checkProposals(PAGE_NAME, "<sample:tag />", 8, proposals, false);
-
- proposals = new String[]{
- "aaa"
- };
- 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);
-
- }
-}
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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>