Author: nbelaevski
Date: 2009-03-24 20:42:45 -0400 (Tue, 24 Mar 2009)
New Revision: 13167
Added:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6547/
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6547/Test.java
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6547.xhtml
Modified:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml
Log:
https://jira.jboss.org/jira/browse/RF-6547
Added:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6547/Test.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6547/Test.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6547/Test.java 2009-03-25
00:42:45 UTC (rev 13167)
@@ -0,0 +1,48 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.testng.rf6547;
+
+import org.richfaces.SeleniumTestBase;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+public class Test extends SeleniumTestBase {
+
+ @org.testng.annotations.Test
+ public void testExecute() throws Exception {
+ renderPage();
+
+ clickAjaxCommandAndWait("form:link");
+ AssertNotVisible("form:table:calendar");
+ clickById("form:table:calendarPopupButton");
+ AssertVisible("form:table:calendar");
+ }
+
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf6547.xhtml";
+ }
+}
Modified:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml 2009-03-25
00:10:17 UTC (rev 13166)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml 2009-03-25
00:42:45 UTC (rev 13167)
@@ -30,6 +30,7 @@
<package name="org.richfaces.testng.rf5933" />
<package name="org.richfaces.testng.rf6035" />
<package name="org.richfaces.testng.rf6267" />
+ <package name="org.richfaces.testng.rf6547" />
</packages>
</test>
</suite>
Added:
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6547.xhtml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6547.xhtml
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6547.xhtml 2009-03-25
00:42:45 UTC (rev 13167)
@@ -0,0 +1,26 @@
+<!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">
+
+<ui:composition template="/layout/layout.xhtml">
+ <ui:define name="template">
+ <h:form id="form">
+ <rich:dataTable value="#{facesContext}" var="fc"
id="table">
+ <rich:column filterExpression="#{true}" id="column">
+ <f:facet name="header">
+ <rich:calendar popup="true" id="calendar" />
+ </f:facet>
+
+ #{fc}
+ </rich:column>
+ </rich:dataTable>
+
+ <a4j:commandLink value="ReRender" id="link"
reRender="table" />
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file