[jbosstools-commits] JBoss Tools SVN: r43255 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Aug 27 09:49:39 EDT 2012


Author: dmaliarevich
Date: 2012-08-27 09:49:39 -0400 (Mon, 27 Aug 2012)
New Revision: 43255

Modified:
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp
   trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp.xml
Log:
https://issues.jboss.org/browse/JBIDE-3225 - component content test for h:commandButton with inner text was added.

Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp	2012-08-27 13:21:09 UTC (rev 43254)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp	2012-08-27 13:49:39 UTC (rev 43255)
@@ -7,21 +7,33 @@
 <body>
 
 <f:view>
-	<h1><h:outputText value="commandButton" /></h1>
+	<DIV id="div1">
+		<h:commandButton value="commandButton1" />
+		<h:commandButton value="commandButton2" type="button" />
+		<h:commandButton value="commandButton3" type="reset" />
+		<h:commandButton value="commandButton4" type="submit" />
+		<h:commandButton value="commandButton5" image="" />
+		<h:commandButton value="commandButton6" type="" />
+</DIV>
 
-	<h:form id="commandButtonForm">
+<DIV id="div2">
+<h:commandButton value="cb1"> </h:commandButton>
+<h:commandButton value="cb2" type="button"> </h:commandButton>
+<h:commandButton value="cb3" type="reset"> </h:commandButton>
+<h:commandButton value="cb4" type="submit"> </h:commandButton>
+<h:commandButton value="cb5" image=""> </h:commandButton>
+<h:commandButton value="cb6" type=""> </h:commandButton>
+</DIV>
 
-		<h:commandButton value="commandButton" id="commandButton1" />
+<DIV id="div3">
+<h:commandButton value="cb1"> with some text </h:commandButton>
+<h:commandButton value="cb2" type="button"> with some text </h:commandButton>
+<h:commandButton value="cb3" type="reset"> with some text </h:commandButton>
+<h:commandButton value="cb4" type="submit"> with some text </h:commandButton>
+<h:commandButton value="cb5" image=""> with some text </h:commandButton>
+<h:commandButton value="cb6" type=""> with some text </h:commandButton>
+</DIV>
 
-		<h:commandButton value="commandButton1" id="commandButton2" type="button" />
-
-		<h:commandButton value="commandButton3" id="commandButton3" type="reset" />
-
-		<h:commandButton value="commandButton4" id="commandButton4" type="submit" />
-
-		<h:commandButton value="commandButton5" id="commandButton5" image="" />
-
-	</h:form>
 </f:view>
 </body>
 </html>
\ No newline at end of file

Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp.xml	2012-08-27 13:21:09 UTC (rev 43254)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/commandButton.jsp.xml	2012-08-27 13:49:39 UTC (rev 43255)
@@ -1,17 +1,106 @@
 <tests>
-	<test id="commandButton1">
-		<input type="button" value="commandButton"/>
+	<test id="div1">
+		<DIV ID="div1" STYLE="-moz-user-modify: read-write;">
+			<INPUT TYPE="button" VALUE="commandButton1" />
+			<INPUT TYPE="button" VALUE="commandButton2" />
+			<INPUT TYPE="reset" VALUE="commandButton3" />
+			<INPUT TYPE="submit" VALUE="commandButton4" />
+			<INPUT TYPE="image" SRC="/.*ve/unresolved_image.gif/" />
+			<INPUT TYPE="" VALUE="commandButton6" />
+		</DIV>
 	</test>
-	<test id="commandButton2">
-		<input type="button" value="commandButton1" />
+
+	<test id="div2">
+		<DIV ID="div2" STYLE="-moz-user-modify: read-write;">
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="button" VALUE="cb1" />
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="button" VALUE="cb2" />
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="reset" VALUE="cb3" />
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="submit" VALUE="cb4" />
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="image" SRC="/.*ve/unresolved_image.gif/" />
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+				</DIV>
+				<INPUT TYPE="" VALUE="cb6" />
+			</DIV>
+		</DIV>
 	</test>
-	<test id="commandButton3">
-		<input type="reset" value="commandButton3" />
+
+	<test id="div3">
+		<DIV ID="div3" STYLE="-moz-user-modify: read-write;">
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="button" VALUE="cb1" />
+
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="button" VALUE="cb2" />
+
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="reset" VALUE="cb3" />
+
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="submit" VALUE="cb4" />
+
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="image" SRC="/.*ve/unresolved_image.gif/" />
+
+			</DIV>
+			<DIV CLASS="vpe-text">
+				<DIV CLASS="vpe-text">
+					<SPAN CLASS="vpe-text">
+						with some text
+					</SPAN>
+				</DIV>
+				<INPUT TYPE="" VALUE="cb6" />
+
+			</DIV>
+		</DIV>
 	</test>
-	<test id="commandButton4">
-		<input type="submit" value="commandButton4" />
-	</test>
-	<test id="commandButton5">
-		<input type="image"  SRC="/.*ve/unresolved_image.gif/" />
-	</test>
 </tests>
\ No newline at end of file



More information about the jbosstools-commits mailing list