myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject svn commit: r488109 - in /myfaces/tomahawk/trunk/examples/simple/src: main/webapp/testSuite/hFormWithSelects.jsp test/selenium/hFormWithSelectsTest.html
Date Mon, 18 Dec 2006 03:31:43 GMT
Author: paulsp
Date: Sun Dec 17 19:31:42 2006
New Revision: 488109

URL: http://svn.apache.org/viewvc?view=rev&rev=488109
Log:
TOMAHAWK-809 - Add test for the remaining <h:selectOne...> and <h:selectMany..>
tags

Modified:
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hFormWithSelects.jsp
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hFormWithSelectsTest.html

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hFormWithSelects.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hFormWithSelects.jsp?view=diff&rev=488109&r1=488108&r2=488109
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hFormWithSelects.jsp
(original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/testSuite/hFormWithSelects.jsp
Sun Dec 17 19:31:42 2006
@@ -74,6 +74,56 @@
         </h:selectManyCheckbox>
       </h:form>
 
+      <h:form id="selectManyListBoxForm" >
+         <h:selectManyListbox id="hSelectManyListbox" size="2" enabledClass="enabled_class"
disabledClass="disable_class">
+          <f:selectItem id="lb_1" itemLabel="Listbox Item 1" itemValue="LB1"/>
+          <f:selectItem id="lb_2" itemLabel="Listbox Item 2" itemValue="LB2" itemDisabled="true"/>
+          <f:selectItem id="lb_3" itemLabel="Listbox Item 3" itemValue="LB3"/>
+          <f:selectItem id="lb_4" itemLabel="Listbox Item 4" itemValue="LB4"/>
+          <f:selectItem id="lb_5" itemLabel="Listbox Item 5" itemValue="LB5"/>
+         </h:selectManyListbox>
+      </h:form>
+      
+      <h:form id="selectManyMenuForm" >
+         <h:selectManyMenu id="hSelectManyMenu">
+          <f:selectItem id="mi_1" itemLabel="Menu Item 1" itemValue="MI1"/>
+          <f:selectItem id="mi_2" itemLabel="Menu Item 2" itemValue="MI2" itemDisabled="true"/>
+          <f:selectItem id="mi_3" itemLabel="Menu Item 3" itemValue="MI3"/>
+          <f:selectItem id="mi_4" itemLabel="Menu Item 4" itemValue="MI4"/>
+          <f:selectItem id="mi_5" itemLabel="Menu Item 5" itemValue="MI5"/>
+         </h:selectManyMenu>
+      </h:form>
+      
+      <h:form id="selectOneListBoxForm" >
+         <h:selectOneListbox id="hSelectOneListbox" size="10">
+          <f:selectItem id="lb_1" itemLabel="Listbox Item 1" itemValue="LB1"/>
+          <f:selectItem id="lb_2" itemLabel="Listbox Item 2" itemValue="LB2" itemDisabled="true"/>
+          <f:selectItem id="lb_3" itemLabel="Listbox Item 3" itemValue="LB3"/>
+          <f:selectItem id="lb_4" itemLabel="Listbox Item 4" itemValue="LB4"/>
+          <f:selectItem id="lb_5" itemLabel="Listbox Item 5" itemValue="LB5"/>
+         </h:selectOneListbox>
+      </h:form>
+
+      <h:form id="selectOneMenuForm" >
+         <h:selectOneMenu id="hSelectOneMenu">
+          <f:selectItem id="mi_1" itemLabel="Menu Item 1" itemValue="MI1"/>
+          <f:selectItem id="mi_2" itemLabel="Menu Item 2" itemValue="MI2" itemDisabled="true"/>
+          <f:selectItem id="mi_3" itemLabel="Menu Item 3" itemValue="MI3"/>
+          <f:selectItem id="mi_4" itemLabel="Menu Item 4" itemValue="MI4"/>
+          <f:selectItem id="mi_5" itemLabel="Menu Item 5" itemValue="MI5"/>
+         </h:selectOneMenu>
+      </h:form>
+
+      <h:form id="selectOneRadioForm" >
+         <h:selectOneRadio id="hSelectOneRadio">
+          <f:selectItem id="rb_1" itemLabel="Radio Item 1" itemValue="RB1"/>
+          <f:selectItem id="rb_2" itemLabel="Radio Item 2" itemValue="RB2" itemDisabled="true"/>
+          <f:selectItem id="rb_3" itemLabel="Radio Item 3" itemValue="RB3"/>
+          <f:selectItem id="rb_4" itemLabel="Radio Item 4" itemValue="RB4"/>
+          <f:selectItem id="rb_5" itemLabel="Radio Item 5" itemValue="RB5"/>
+         </h:selectOneRadio>
+      </h:form>
+       
       
       <!-- End test -->
 

Modified: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hFormWithSelectsTest.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hFormWithSelectsTest.html?view=diff&rev=488109&r1=488108&r2=488109
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hFormWithSelectsTest.html (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/hFormWithSelectsTest.html Sun
Dec 17 19:31:42 2006
@@ -34,6 +34,89 @@
 	<td>//input[@id="selectBooleanCheckboxForm:hSelectBooleanCheckboxTrue"]</td>
 	<td>on</td>
 </tr>
+<!-- Testing h:selectManyCheckbox -->
+<tr>
+	<td>assertElementPresent</td>
+	<td>document.forms[1].elements['selectManyCheckboxForm:hSelectManyCheckbox'][0]</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertTable</td>
+	<td>selectManyCheckboxForm:hSelectManyCheckbox.0.0</td>
+	<td>Check Box 1</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//input[@name="selectManyCheckboxForm:hSelectManyCheckbox" and @value="CB2"]@disabled</td>
+	<td>glob:*</td>
+</tr>
+<!-- Testing h:selectManyCheckbox  Page Direction -->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//table[@id="selectManyCheckboxPageDirectionForm:hSelectManyCheckbox"]//tr[5]</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertElementNotPresent</td>
+	<td>//table[@id="selectManyCheckboxPageDirectionForm:hSelectManyCheckbox"]//tr[6]</td>
+	<td></td>
+</tr>
+<!-- Testing h:selectManyCheckbox  Line Direction -->
+<tr>
+	<td>assertElementPresent</td>
+	<td>//table[@id="selectManyCheckboxLineDirectionForm:hSelectManyCheckbox"]//tr/td[5]</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertElementNotPresent</td>
+	<td>//table[@id="selectManyCheckboxLineDirectionForm:hSelectManyCheckbox"]//tr/td[6]</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertElementNotPresent</td>
+	<td>//table[@id="selectManyCheckboxLineDirectionForm:hSelectManyCheckbox"]//tr[2]</td>
+	<td></td>
+</tr>
+<!-- Testing h:selectManyListBoxForm" -->
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectManyListBoxForm:hSelectManyListbox"]@size</td>
+	<td>2</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectManyListBoxForm:hSelectManyListbox"]/option[1]@value</td>
+	<td>LB1</td>
+</tr>
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectManyListBoxForm:hSelectManyListbox"]//option[@value="LB2"]@disabled</td>
+	<td>glob:*</td>
+</tr>
+<!-- Testing h:selectManyMenuForm" -->
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectManyMenuForm:hSelectManyMenu"]@size</td>
+	<td>1</td>
+</tr>
+<!-- Testing h:selectOneListboxForm" -->
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectOneListBoxForm:hSelectOneListbox"]@size</td>
+	<td>10</td>
+</tr>
+<!-- Testing h:selectOneMenuForm" -->
+<tr>
+	<td>assertAttribute</td>
+	<td>//select[@name="selectOneMenuForm:hSelectOneMenu"]@size</td>
+	<td>1</td>
+</tr>
+<!-- Testing h:selectOneRadioForm" -->
+<tr>
+	<td>assertAttribute</td>
+	<td>//input[@name="selectOneRadioForm:hSelectOneRadio" and @value="RB1"]@type</td>
+	<td>radio</td>
+</tr>
 
 </tbody></table>
 </body>



Mime
View raw message