Author: ppitonak(a)redhat.com
Date: 2009-10-19 10:15:55 -0400 (Mon, 19 Oct 2009)
New Revision: 15722
Added:
branches/community/3.3.X/test-applications/regression-test/
branches/community/3.3.X/test-applications/regression-test/.svnignore
branches/community/3.3.X/test-applications/regression-test/pom.xml
branches/community/3.3.X/test-applications/regression-test/src/
branches/community/3.3.X/test-applications/regression-test/src/main/
branches/community/3.3.X/test-applications/regression-test/src/main/java/
branches/community/3.3.X/test-applications/regression-test/src/main/resources/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/META-INF/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/META-INF/MANIFEST.MF
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/classes/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/faces-config.xml
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/lib/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/web.xml
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/1.png
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/2.png
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/3.png
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/4.png
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/5.png
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/index.jsp
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/index.xhtml
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/rf7994.xhtml
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/templates/
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/templates/template.xhtml
branches/community/3.3.X/test-applications/regression-test/src/test/
branches/community/3.3.X/test-applications/regression-test/src/test/java/
branches/community/3.3.X/test-applications/regression-test/src/test/java/org/
branches/community/3.3.X/test-applications/regression-test/src/test/java/org/jboss/
branches/community/3.3.X/test-applications/regression-test/src/test/java/org/jboss/richfaces/
branches/community/3.3.X/test-applications/regression-test/src/test/java/org/jboss/richfaces/samples/
branches/community/3.3.X/test-applications/regression-test/src/test/java/org/jboss/richfaces/samples/tictactoe/
Log:
Added a project for manual testing of regressions.
Added: branches/community/3.3.X/test-applications/regression-test/.svnignore
===================================================================
--- branches/community/3.3.X/test-applications/regression-test/.svnignore
(rev 0)
+++ branches/community/3.3.X/test-applications/regression-test/.svnignore 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,4 @@
+.project
+.settings
+.classpath
+target
Added: branches/community/3.3.X/test-applications/regression-test/pom.xml
===================================================================
--- branches/community/3.3.X/test-applications/regression-test/pom.xml
(rev 0)
+++ branches/community/3.3.X/test-applications/regression-test/pom.xml 2009-10-19 14:15:55
UTC (rev 15722)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.richfaces</groupId>
+ <artifactId>regression-test</artifactId>
+ <name>Regression test application</name>
+ <packaging>war</packaging>
+ <version>3.3.3-SNAPSHOT</version>
+ <description>Application for manual testing of regressions.</description>
+ <
url>http://www.jboss.org/richfaces</url>
+ <inceptionYear>2009</inceptionYear>
+ <organization>
+ <name>Red Hat, Inc.</name>
+ <url>http://www.redhat.com</url>
+ </organization>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <finalName>regression-test</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>richfaces</id>
+ <
url>http://repository.jboss.org/maven2</url>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.3.2.SR1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.15.B1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_12</version>
+ <type>jar</type>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/META-INF/MANIFEST.MF 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/.faces-config.xml.jsfdia 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess">
+ <PROCESS-ITEM NAME="rules:#pages#index.xhtml"
PATH="/pages/index.xhtml"
+ SHAPE="208,72,50,25" model-entity="JSFProcessGroup"/>
+ <PROCESS-ITEM NAME="rules:#pages#*" PATH="/pages/*"
SHAPE="32,48,53,42" model-entity="JSFProcessGroup">
+ <PROCESS-ITEM ID="rules:#pages#*:0" NAME="item"
PATH="/pages/*" model-entity="JSFProcessItem">
+ <PROCESS-ITEM-OUTPUT ID="index::#pages#index.xhtml"
NAME="output"
+ PATH="/pages/index.xhtml" TARGET="rules:#pages#index.xhtml"
+ TITLE="index" model-entity="JSFProcessItemOutput"/>
+ </PROCESS-ITEM>
+ </PROCESS-ITEM>
+</PROCESS>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/faces-config.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/faces-config.xml 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xi="http://www.w3.org/2001/XInclude"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+ <managed-bean>
+ <managed-bean-name>gameBean</managed-bean-name>
+
<managed-bean-class>org.jboss.richfaces.samples.tictactoe.GameBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/*</from-view-id>
+ <navigation-case>
+ <from-outcome>index</from-outcome>
+ <to-view-id>/pages/index.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+</faces-config>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/WEB-INF/web.xml 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <display-name>Tic Tac Toe</display-name>
+ <context-param>
+ <param-name>javax.faces.CONFIG_FILES</param-name>
+ <param-value>/WEB-INF/faces-config.xml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>DEFAULT</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>enable</param-value>
+ </context-param>
+ <filter>
+ <display-name>RichFaces Filter</display-name>
+ <filter-name>richfaces</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>richfaces</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/1.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/2.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/3.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/4.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/5.png
===================================================================
(Binary files differ)
Property changes on:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/images/rf7994/5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/index.jsp
===================================================================
--- branches/community/3.3.X/test-applications/regression-test/src/main/webapp/index.jsp
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/index.jsp 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/pages/index.jsf" />
+ </body>
+
+</html>
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/index.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/index.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/index.xhtml 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,29 @@
+<!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:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<body>
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="title">Regression Tests</ui:define>
+
+ <ui:define name="body">
+ <h1>Regression Test Cases</h1>
+
+ <h:form>
+ <table>
+ <tr>
+ <td style="width: 150px;"><a id="rf7994-tc"
href="/regression-test/pages/rf7994.jsf">Menu Item</a></td>
+ <td><a id="rf7994-jira"
href="https://jira.jboss.org/jira/browse/RF-7994">https://ji...
+ </tr>
+ </table>
+ </h:form>
+ </ui:define>
+
+</ui:composition>
+</body>
+</html>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/rf7994.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/rf7994.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/pages/rf7994.xhtml 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,95 @@
+<!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:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<body>
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="title">Menu Item - RF-7994</ui:define>
+
+ <ui:define name="body">
+ <h1>Menu Item</h1>
+ <h3><a
href="https://jira.jboss.org/jira/browse/RF-7994">https://ji...
+
+ <h:form>
+ <h:commandLink id="back1" action="index" value="Back to
main page"/>
+ <h:panelGrid columns="3" class="bug-table">
+ <h:outputText value="Component"/>
+ <h:outputText value="WRONG" style="color: red;"/>
+ <h:outputText value="Description"/>
+ <rich:dropDownMenu>
+ <f:facet name="label">
+ <h:outputText value="titi" />
+ </f:facet>
+ <rich:menuGroup value="bob">
+ <rich:menuItem value="bob1" />
+ <rich:menuItem value="bob2" disabled="true" />
+ <rich:menuItem value="bob3" />
+ <rich:menuItem value="bob4" />
+ </rich:menuGroup>
+ <rich:menuGroup value="toto">
+ <rich:menuItem value="toto1" />
+ <rich:menuItem value="toto2" />
+ <rich:menuItem value="toto3" />
+ </rich:menuGroup>
+ <rich:menuItem value="coucou" />
+ </rich:dropDownMenu>
+
+ <h:panelGroup>
+ <h:graphicImage value="/images/rf7994/1.png"/>
+ <h:graphicImage value="/images/rf7994/2.png"/>
+ </h:panelGroup>
+
+ <h:panelGroup>
+ <ol>
+ <li>hover over "titi" and verify that menu is next to it</li>
+ <li>open submenu "bob" and verify that the second item is disabled
and other are rendered well</li>
+ <li>open submenu "toto" and verify that submenu is rendered
correctly</li>
+ </ol>
+ </h:panelGroup>
+
+ <rich:dropDownMenu>
+ <f:facet name="label">
+ <h:outputText value="titi" />
+ </f:facet>
+ <rich:menuGroup value="bob">
+ <rich:menuItem value="bob1" />
+ <rich:menuItem value="bob2" disabled="true" />
+ <rich:menuItem value="bob3" disabled="true" />
+ <rich:menuItem value="bob4" />
+ </rich:menuGroup>
+ <rich:menuGroup value="toto">
+ <rich:menuItem value="toto1" />
+ <rich:menuItem value="toto2" />
+ <rich:menuItem value="toto3" />
+ </rich:menuGroup>
+ <rich:menuItem value="coucou" />
+ </rich:dropDownMenu>
+
+ <h:panelGroup>
+ <h:graphicImage value="/images/rf7994/3.png"/>
+ <h:graphicImage value="/images/rf7994/4.png"/>
+ <h:graphicImage value="/images/rf7994/5.png"/>
+ </h:panelGroup>
+
+ <h:panelGroup>
+ <ol>
+ <li>verify that "bob4" is not rendered outside of drop down
menu</li>
+ <li>open menu "bob", verify that "bob2" and
"bob3" are disabled and that "bob3" is rendered correctly</li>
+ <li>open menu "toto" and verify that submenu is rendered next to
main menu</li>
+ </ol>
+ </h:panelGroup>
+
+ </h:panelGrid>
+ <h:commandLink id="back2" action="index" value="Back to
main page"/>
+ </h:form>
+
+ </ui:define>
+
+</ui:composition>
+</body>
+</html>
Added:
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/templates/template.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/templates/template.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/regression-test/src/main/webapp/templates/template.xhtml 2009-10-19
14:15:55 UTC (rev 15722)
@@ -0,0 +1,55 @@
+<!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:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<head>
+ <title><ui:insert name="title">Default
title</ui:insert></title>
+ <meta http-equiv="Content-Type" content="text/xhtml;
charset=utf-8" />
+ <style type="text/css">
+ .table-header {
+ font: bolder; #
+ padding: 2px;
+ margin: 2px;
+ width: 110px;
+ border: 1px solid;
+ }
+ body {
+ background-color: #{richSkin.generalBackgroundColor};
+ }
+ table.bug-table {
+ border-width: 1px 1px 1px 1px;
+ border-spacing: 2px;
+ border-style: none none none none;
+ border-color: blue blue blue blue;
+ border-collapse: separate;
+ background-color: rgb(255, 255, 240);
+ }
+ table.bug-table th {
+ border-width: 1px 1px 1px 1px;
+ padding: 3px 3px 3px 3px;
+ border-style: dotted dotted dotted dotted;
+ border-color: blue blue blue blue;
+ background-color: white;
+ }
+ table.bug-table td {
+ border-width: 1px 1px 1px 1px;
+ padding: 3px 3px 3px 3px;
+ border-style: dotted dotted dotted dotted;
+ border-color: blue blue blue blue;
+ background-color: white;
+ }
+</style>
+</head>
+
+<body>
+<ui:insert name="body">
+ <p>Body of the page.</p>
+</ui:insert>
+</body>
+
+</html>