[jbosstools-commits] JBoss Tools SVN: r43590 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test: resources/richFacesTest/WebContent/pages/JBIDE/5768 and 1 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Sep 11 08:22:19 EDT 2012


Author: dmaliarevich
Date: 2012-09-11 08:22:19 -0400 (Tue, 11 Sep 2012)
New Revision: 43590

Added:
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml.xml
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-footer.xhtml
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-header.xhtml
Modified:
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
Log:
https://issues.jboss.org/browse/JBIDE-5768 -  junit for facets was added.

Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml	                        (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml	2012-09-11 12:22:19 UTC (rev 43590)
@@ -0,0 +1,35 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+	xmlns:h="http://java.sun.com/jsf/html"
+	xmlns:f="http://java.sun.com/jsf/core"
+	xmlns:a4j="http://richfaces.org/a4j"
+	xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+<body>
+
+<rich:dataTable id="t1" 
+	style="border: 1px solid red;" border="1" value="#{user.trees}">
+	<f:facet name="header">HEADER
+		<h:outputText value="*H1*"/>
+		<h:outputText value="*H2*"/>
+	</f:facet>
+	<f:facet name="footer">FOOTER
+		<h:outputText value="*F3*"/>
+		<h:outputText value="*F4*"/>
+		</f:facet>	<rich:column>Col1</rich:column>
+	<rich:column>Col2</rich:column>
+</rich:dataTable>
+
+<rich:dataTable id="t2"
+	style="border: 1px solid green;" border="1" value="#{user.trees}">
+	<ui:include src="test-header.xhtml"/>
+	<ui:include src="test-footer.xhtml"/>
+	<rich:column>Col1</rich:column>
+	<rich:column>Col2</rich:column>
+</rich:dataTable>
+
+</body>
+</html>
\ No newline at end of file


Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml.xml	                        (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml.xml	2012-09-11 12:22:19 UTC (rev 43590)
@@ -0,0 +1,99 @@
+<tests>
+	<test id="t1">
+
+		<TABLE BORDER="1" STYLE="border: 1px solid red;" VALUE="#{user.trees}"
+			CLASS="dr-table rich-table">
+			<COLGROUP SPAN="2">
+			</COLGROUP>
+			<THEAD>
+				<TR CLASS="dr-table-header rich-table-header " 
+					STYLE="/background-image: url\(.*resources/common/background.gif\);/">
+					<TD CLASS="dr-table-headercell rich-table-headercell " COLSPAN="100"
+						SCOPE="colgroup">
+						<SPAN CLASS="vpe-text">
+							HEADER
+						</SPAN>
+						<SPAN CLASS="vpe-text">
+							*H1*
+						</SPAN>
+						<SPAN CLASS="vpe-text">
+							*H2*
+						</SPAN>
+					</TD>
+				</TR>
+			</THEAD>
+			<TFOOT>
+				<TR CLASS="dr-table-footer rich-table-footer " 
+					STYLE="/background-image: url\(.*resources/common/background.gif\);/">
+					<TD CLASS="dr-table-footercell rich-table-footercell " COLSPAN="100"
+						SCOPE="colgroup">
+						<SPAN CLASS="vpe-text">
+							FOOTER
+						</SPAN>
+						<SPAN CLASS="vpe-text">
+							*F3*
+						</SPAN>
+						<SPAN CLASS="vpe-text">
+							*F4*
+						</SPAN>
+					</TD>
+				</TR>
+			</TFOOT>
+			<TR CLASS="dr-table-firstrow rich-table-firstrow">
+				<TD CLASS="dr-table-cell rich-table-cell">
+					<SPAN CLASS="vpe-text">
+						Col1
+					</SPAN>
+				</TD>
+				<TD CLASS="dr-table-cell rich-table-cell">
+					<SPAN CLASS="vpe-text">
+						Col2
+					</SPAN>
+				</TD>
+			</TR>
+		</TABLE>
+	</test>
+
+	<test id="t2">
+
+		<TABLE BORDER="1" STYLE="border: 1px solid green;" VALUE="#{user.trees}"
+			CLASS="dr-table rich-table">
+			<COLGROUP SPAN="2">
+			</COLGROUP>
+			<TR>
+				<TD COLSPAN="100">
+					<DIV VPE:INCLUDE-ELEMENT="yes" STYLE="-moz-user-modify: read-only;">
+						<SPAN STYLE="-moz-user-modify: read-only;">
+							<SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-only;">
+								head_include
+							</SPAN>
+						</SPAN>
+					</DIV>
+				</TD>
+			</TR>
+			<TR>
+				<TD COLSPAN="100">
+					<DIV VPE:INCLUDE-ELEMENT="yes" STYLE="-moz-user-modify: read-only;">
+						<SPAN STYLE="-moz-user-modify: read-only;">
+							<SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-only;">
+								foot_include
+							</SPAN>
+						</SPAN>
+					</DIV>
+				</TD>
+			</TR>
+			<TR CLASS="dr-table-firstrow rich-table-firstrow">
+				<TD CLASS="dr-table-cell rich-table-cell">
+					<SPAN CLASS="vpe-text">
+						Col1
+					</SPAN>
+				</TD>
+				<TD CLASS="dr-table-cell rich-table-cell">
+					<SPAN CLASS="vpe-text">
+						Col2
+					</SPAN>
+				</TD>
+			</TR>
+		</TABLE>
+	</test>
+</tests>
\ No newline at end of file


Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/dataTable.xhtml.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-footer.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-footer.xhtml	                        (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-footer.xhtml	2012-09-11 12:22:19 UTC (rev 43590)
@@ -0,0 +1,8 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+        xmlns:ui="http://java.sun.com/jsf/facelets"
+        xmlns:f="http://java.sun.com/jsf/core"
+        xmlns:h="http://java.sun.com/jsf/html">
+	<f:facet name="footer">FOOTER
+			<h:outputText value="foot_include"/>
+			</f:facet>
+</ui:composition>

Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-header.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-header.xhtml	                        (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/5768/test-header.xhtml	2012-09-11 12:22:19 UTC (rev 43590)
@@ -0,0 +1,8 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+        xmlns:ui="http://java.sun.com/jsf/facelets"
+        xmlns:f="http://java.sun.com/jsf/core"
+        xmlns:h="http://java.sun.com/jsf/html">
+	<f:facet name="header">HEADER
+		<h:outputText value="head_include"/>
+	</f:facet>
+</ui:composition>

Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java	2012-09-11 12:16:18 UTC (rev 43589)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java	2012-09-11 12:22:19 UTC (rev 43590)
@@ -444,6 +444,10 @@
 		performInvisibleTagTest("components/validator.xhtml", "validator"); //$NON-NLS-1$ //$NON-NLS-2$
 	}
 	
+	public void testDataTableFacets() throws Throwable {
+		performContentTest("JBIDE/5768/dataTable.xhtml"); //$NON-NLS-1$
+	}
+	
 	@Override
 	protected String getTestProjectName() {
 		return RichFacesAllTests.IMPORT_PROJECT_NAME;



More information about the jbosstools-commits mailing list