Author: mvitenkov
Date: 2009-05-27 11:22:09 -0400 (Wed, 27 May 2009)
New Revision: 14377
Added:
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5758/
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5758/Test.java
branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5758.xhtml
Log:
RF-5758 selenium test was added.
Added:
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5758/Test.java
===================================================================
---
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5758/Test.java
(rev 0)
+++
branches/community/3.3.X/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5758/Test.java 2009-05-27
15:22:09 UTC (rev 14377)
@@ -0,0 +1,21 @@
+package org.richfaces.testng.rf5758;
+
+import org.richfaces.SeleniumTestBase;
+
+public class Test extends SeleniumTestBase {
+
+ @org.testng.annotations.Test
+ public void testExecute() throws Exception{
+ renderPage();
+ String str;
+ if((str = selenium.getValue("//form/span/input")).compareTo("Item
45") != 0){
+ throw new AssertionError("Expected: <Item 45>; Actual: <" + str +
">");
+ }
+ }
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf5758.xhtml";
+ }
+
+}
\ No newline at end of file
Added:
branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5758.xhtml
===================================================================
---
branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5758.xhtml
(rev 0)
+++
branches/community/3.3.X/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5758.xhtml 2009-05-27
15:22:09 UTC (rev 14377)
@@ -0,0 +1,21 @@
+<!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:inplaceSelect value="#{45}" id="inplaceSelectID">
+ <f:selectItem itemLabel="Item 1" itemValue="#{1}" />
+ <f:selectItem itemLabel="Item 2" itemValue="#{2}" />
+ <f:selectItem itemLabel="Item 3" itemValue="#{3}" />
+ <f:selectItem itemLabel="Item 45" itemValue="#{45}" />
+ </rich:inplaceSelect>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file