Revision: 571
          http://svn.sourceforge.net/jwebunit/?rev=571&view=rev
Author:   henryju
Date:     2006-09-26 08:07:25 -0700 (Tue, 26 Sep 2006)

Log Message:
-----------
Add unit test for bug [1565634] : selectOption reset previous setWorkingForm 
action.

Modified Paths:
--------------
    
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
    
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html

Modified: 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
===================================================================
--- 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
   2006-09-26 15:03:10 UTC (rev 570)
+++ 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
   2006-09-26 15:07:25 UTC (rev 571)
@@ -218,6 +218,14 @@
         selectOption("select1", "two");
         assertSelectedOptionEquals("select1", "two");
     }
+    
+    public void testSelectOptionInAnotherForm() {
+        beginAt("/MultiFormPage.html");
+        setWorkingForm("form6bis");
+        assertSelectedOptionEquals("select1", "four");
+        selectOption("select1", "five");
+        assertSelectedOptionEquals("select1", "five");
+    }
 
     public void testSelectOptionByValue() {
         beginAt("/MultiFormPage.html");

Modified: 
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html
===================================================================
--- 
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html
     2006-09-26 15:03:10 UTC (rev 570)
+++ 
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormSubmissionTest/MultiFormPage.html
     2006-09-26 15:07:25 UTC (rev 571)
@@ -36,6 +36,14 @@
                        <option value="3">three</option>
                        </select>
                </form>
+               
+               <form id="form6bis">
+                       <select name="select1">
+                       <option value="1">four</option>
+                       <option value="2">five</option>
+                       <option value="3">six</option>
+                       </select>
+               </form>
 
                <form name="myForm">
                        <input type="submit" name="myInput1">


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to