You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/07/18 15:03:53 UTC

svn commit: r1362928 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup: popup-draggable.selenium.html popup-draggable.xhtml

Author: lofwyr
Date: Wed Jul 18 13:03:53 2012
New Revision: 1362928

URL: http://svn.apache.org/viewvc?rev=1362928&view=rev
Log:
TOBAGO-1175: Popups should be draggable

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.selenium.html
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.xhtml
      - copied, changed from r1362890, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-bug-tobago-1091.xhtml

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.selenium.html
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.selenium.html?rev=1362928&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.selenium.html (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.selenium.html Wed Jul 18 13:03:53 2012
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8080/faces/tc/button/link-attribute.xhtml" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+	<td>open</td>
+	<td>/faces/tc/popup/popup-draggable.xhtml</td>
+	<td></td>
+</tr>
+<tr>
+	<td>clickAndWait</td>
+	<td>id=page:open</td>
+	<td></td>
+</tr>
+<tr>
+	<td>assertElementPositionLeft</td>
+	<td>//div[@id='page:popup:box']/div/div/div</td>
+	<td>350</td>
+</tr>
+<tr>
+	<td>assertElementPositionTop</td>
+	<td>//div[@id='page:popup:box']/div/div/div</td>
+	<td>100</td>
+</tr>
+<tr>
+	<td>dragAndDrop</td>
+	<td>//div[@id='page:popup:box']/div/div/div</td>
+	<td>-150,50</td>
+</tr>
+<tr>
+	<td>assertElementPositionLeft</td>
+	<td>//div[@id='page:popup:box']/div/div/div</td>
+	<td>200</td>
+</tr>
+<tr>
+	<td>assertElementPositionTop</td>
+	<td>//div[@id='page:popup:box']/div/div/div</td>
+	<td>150</td>
+</tr>
+</tbody></table>
+</body>
+</html>

Copied: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.xhtml (from r1362890, myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-bug-tobago-1091.xhtml)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.xhtml?p2=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.xhtml&p1=myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-bug-tobago-1091.xhtml&r1=1362890&r2=1362928&rev=1362928&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-bug-tobago-1091.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/tc/popup/popup-draggable.xhtml Wed Jul 18 13:03:53 2012
@@ -24,44 +24,26 @@
 
   <tc:page width="800px" height="300px" id="page">
 
-    <tc:box label="TOBAGO-1091">
+    <tc:box label="Popup draggable">
       <f:facet name="layout">
         <tc:gridLayout rows="auto;*;auto;auto;auto"/>
       </f:facet>
-      <tc:link
-          label="Bug-Tracking: TOBAGO-1091" link="https://issues.apache.org/jira/browse/TOBAGO-1091"/>
-      <tc:out escape="false" value="Close popup with defaultCommand uncheckes a checkbox on main page.
-      &lt;br/>Checklist:
-      &lt;ol>
-      &lt;li>Check: checkbox is checked&lt;/li>
-      &lt;li>Click on the open button&lt;/li>
-      &lt;li>Click on the close button&lt;/li>
-      &lt;li>Check: checkbox is checked&lt;/li>
-      &lt;/ol>"/>
 
-      <tx:in label="Input" value="test" fieldId="in"/>
-      <tx:selectBooleanCheckbox label="Checkbox" value="true" fieldId="check"/>
-
-      <tc:panel>
-        <f:facet name="layout">
-          <tc:gridLayout columns="auto;*"/>
+      <tc:button label="Open Popup" id="open">
+        <f:facet name="popup">
+          <tc:popup width="100px" height="100px" id="popup">
+            <tc:box label="Popup" id="box">
+              <f:facet name="layout">
+                <tc:gridLayout rows="*;auto"/>
+              </f:facet>
+              <tc:panel/>
+              <tc:button label="Close" id="close" defaultCommand="true">
+                <tc:attribute name="popupClose" value="afterSubmit"/>
+              </tc:button>
+            </tc:box>
+          </tc:popup>
         </f:facet>
-        <tc:button label="Open Popup" id="open">
-          <f:facet name="popup">
-            <tc:popup width="100px" height="100px" id="popup">
-              <tc:box label="Popup" id="box">
-                <f:facet name="layout">
-                  <tc:gridLayout rows="*;auto"/>
-                </f:facet>
-                <tc:panel/>
-                <tc:button label="Close" id="close" defaultCommand="true">
-                  <tc:attribute name="popupClose" value="afterSubmit"/>
-                </tc:button>
-              </tc:box>
-            </tc:popup>
-          </f:facet>
-        </tc:button>
-      </tc:panel>
+      </tc:button>
     </tc:box>
   </tc:page>
 </f:view>