You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ws...@apache.org on 2006/09/03 06:05:24 UTC

svn commit: r439718 - in /myfaces/tomahawk/trunk/examples/simple/src: main/webapp/popup.jsp test/selenium/PopupTest.html test/selenium/TestSuite.html

Author: wsmoak
Date: Sat Sep  2 21:05:24 2006
New Revision: 439718

URL: http://svn.apache.org/viewvc?rev=439718&view=rev
Log:
Add a Selenium test for the popup component.
Mouse over each row and assert that only the correct popup is visible.
Added an 'id' attribute to the rest of the popup and outputText components to facilitate testing.
TOMAHAWK-583

Added:
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html   (with props)
Modified:
    myfaces/tomahawk/trunk/examples/simple/src/main/webapp/popup.jsp
    myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html

Modified: myfaces/tomahawk/trunk/examples/simple/src/main/webapp/popup.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/main/webapp/popup.jsp?rev=439718&r1=439717&r2=439718&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/main/webapp/popup.jsp (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/main/webapp/popup.jsp Sat Sep  2 21:05:24 2006
@@ -55,13 +55,13 @@
                 </f:facet>
             </t:popup>
 
-            <t:popup
+            <t:popup id="y"
                 styleClass="popup"
                 closePopupOnExitingElement="true"
                 closePopupOnExitingPopup="true"
                 displayAtDistanceX="10"
                 displayAtDistanceY="10" >
-                <h:outputText value="This is the second textual text situation."/>
+                <h:outputText id="oy" value="This is the second textual text situation."/>
                 <f:facet name="popup">
                     <h:panelGroup>
                         <h:panelGrid columns="1" >
@@ -71,8 +71,8 @@
                 </f:facet>
             </t:popup>
 
-            <t:popup styleClass="popup">
-                <h:outputText value="This is the third textual text situation."/>
+            <t:popup styleClass="popup" id="z">
+                <h:outputText id="oz" value="This is the third textual text situation."/>
                 <f:facet name="popup">
                     <h:panelGroup>
                         <h:panelGrid columns="1" >

Added: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html?rev=439718&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html (added)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html Sat Sep  2 21:05:24 2006
@@ -0,0 +1,89 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>PopupTest</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">PopupTest</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>http://localhost:8080/myfaces-example-simple</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>link=Popup</td>
+	<td></td>
+</tr>
+<!--Mouse over the first line-->
+<tr>
+	<td>mouseOver</td>
+	<td>id=data:0:ox</td>
+	<td></td>
+</tr>
+<!--Assert that only the data:0:x popup is visible-->
+<tr>
+	<td>assertVisible</td>
+	<td>id=data:0:x</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:y</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:z</td>
+	<td></td>
+</tr>
+<!--Mouse over the second line-->
+<tr>
+	<td>mouseOver</td>
+	<td>id=data:0:oy</td>
+	<td></td>
+</tr>
+<!--Assert that only the data:0:y popup is visible-->
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:x</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertVisible</td>
+	<td>id=data:0:y</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:z</td>
+	<td></td>
+</tr>
+<!--Mouse over the third line-->
+<tr>
+	<td>mouseOver</td>
+	<td>id=data:0:oz</td>
+	<td></td>
+</tr>
+<!--Assert that only the data:0:z popup is visible-->
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:x</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertNotVisible</td>
+	<td>id=data:0:y</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertVisible</td>
+	<td>id=data:0:z</td>
+	<td></td>
+</tr>
+</tbody></table>
+</body>
+</html>

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/PopupTest.html
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html?rev=439718&r1=439717&r2=439718&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html (original)
+++ myfaces/tomahawk/trunk/examples/simple/src/test/selenium/TestSuite.html Sat Sep  2 21:05:24 2006
@@ -15,6 +15,11 @@
                <a href="Tree2NoNavTest.html">Tree2 (no nav icons) Test</a>
             </td>
          </tr>
+          <tr>
+             <td>
+                <a href="PopupTest.html">Popup Test</a>
+             </td>
+          </tr>
       </table>
    </body>
 </html>