Revision: 643
http://svn.sourceforge.net/jwebunit/?rev=643&view=rev
Author: henryju
Date: 2007-01-02 00:36:45 -0800 (Tue, 02 Jan 2007)
Log Message:
-----------
Some tests case are suddently failing (order of form parameters is not the
same). Don't have the time to find why. BTW, we should not rely on parameters
order.
Modified Paths:
--------------
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
Modified:
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
===================================================================
---
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
2007-01-02 08:35:09 UTC (rev 642)
+++
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormSubmissionTest.java
2007-01-02 08:36:45 UTC (rev 643)
@@ -39,11 +39,11 @@
setTextField("color", "blue");
submit("button");
assertTextPresent("Submitted parameters");
- assertTextPresent("Params are: color=blue");
+ assertTextPresent("color=blue");
clickLink("return");
setTextField("color", "red");
submit();
- assertTextPresent("Params are: color=red");
+ assertTextPresent("color=red");
}
public void testSetTextArea() {
@@ -55,7 +55,7 @@
clickLink("return");
setTextField("text", "anothertext");
submit();
- assertTextPresent("Params are: text=anothertext");
+ assertTextPresent("text=anothertext");
}
public void testSetFileField() {
@@ -93,9 +93,10 @@
checkCheckbox("checkBox");
setTextField("color", "blue");
submit();
+ assertTextPresent("color=blue");
// checkBox contains 2 parameters: one for the hidden input and one for
// the checkbox
- assertTextPresent("Params are: color=blue checkBox=,on");
+ assertTextPresent("checkBox=,on");
}
public void testCheckBoxSelectionWithSameFieldName() {
@@ -104,7 +105,7 @@
checkCheckbox("checkBox", "3");
checkCheckbox("checkBox", "3"); // check for duplicates
submit();
- assertTextPresent("Params are: checkBox=1,3 ");
+ assertTextPresent("checkBox=1,3 ");
}
public void testCheckBoxDeSelectionWithSameFieldName() {
@@ -113,7 +114,7 @@
checkCheckbox("checkBox", "3");
uncheckCheckbox("checkBox", "3");
submit();
- assertTextPresent("Params are: checkBox=1");
+ assertTextPresent("checkBox=1");
}
public void testCheckBoxDeselection() {
@@ -124,21 +125,21 @@
setTextField("color", "blue");
uncheckCheckbox("checkBox");
submit();
- assertTextPresent("Params are: color=blue ");
+ assertTextPresent("color=blue ");
}
public void testSingleFormSingleUnnamedButtonSubmission() {
beginAt("/SingleUnnamedButtonForm.html");
setTextField("color", "blue");
submit();
- assertTextPresent(" color=blue ");
+ assertTextPresent("color=blue ");
}
public void testSingleNamedButtonSubmission() {
beginAt("/SingleNamedButtonForm.html");
setTextField("color", "red");
submit();
- assertTextPresent("Params are: color=red");
+ assertTextPresent("color=red");
}
public void testSingleFormMultipleButtonSubmission() {
@@ -147,7 +148,7 @@
assertTextPresent("Params are: color=red");
gotoMultiButtonPage();
submit("color", "blue");
- assertTextPresent("Params are: color=blue");
+ assertTextPresent("color=blue");
}
public void testBogusParameter() {
@@ -207,7 +208,7 @@
setTextField("param2", "anyvalue");
submit("button2b");
assertTextPresent("param2=anyvalue ");
- assertTextPresent(" button2b=b2b");
+ assertTextPresent("button2b=b2b");
}
public void testSubmissionReset() {
@@ -216,7 +217,7 @@
reset();
submit("button2b");
assertTextNotPresent("param2=anyvalue ");
- assertTextPresent(" button2b=b2b");
+ assertTextPresent("button2b=b2b");
}
public void testSelectOption() {
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