Revision: 479
Author: henryju
Date: 2006-06-09 02:45:22 -0700 (Fri, 09 Jun 2006)
ViewCVS: http://svn.sourceforge.net/jwebunit/?rev=479&view=rev
Log Message:
-----------
Add tests for AssertResetButton(Not)Present.
Modified Paths:
--------------
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
Modified:
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
===================================================================
---
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
2006-06-09 09:01:20 UTC (rev 478)
+++
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/FormAssertionsTest.java
2006-06-09 09:45:22 UTC (rev 479)
@@ -40,7 +40,7 @@
assertPassFail("assertFormElementNotPresent", "noSuchElement",
"testInputElement");
}
- public void testAssertHasForm() throws Throwable {
+ public void testAssertFormPresent() throws Throwable {
beginAt("/testPage.html");
assertPass("assertFormPresent", NOARGS);
beginAt("/noFormPage.html");
@@ -48,7 +48,7 @@
assertPass("assertFormNotPresent", NOARGS);
}
- public void testAssertHasNamedForm() throws Throwable {
+ public void testAssertFormPresentByName() throws Throwable {
beginAt("/testPage.html");
assertPass("assertFormPresent", new String[]{"form2"});
assertFail("assertFormPresent", new String[]{"noform"});
@@ -91,6 +91,16 @@
new Object[]{"submitButton", "noSuchLabel"});
}
+ public void testAssertResetButtonPresent() throws Throwable {
+ beginAt("/testPage.html");
+ assertPassFail("assertResetButtonPresent", "resetButton",
"noSuchButton");
+ }
+
+ public void testAssertResetButtonNotPresent() throws Throwable {
+ beginAt("/testPage.html");
+ assertPassFail("assertResetButtonNotPresent", "noSuchButton",
"resetButton");
+ }
+
public void testAssertRadioOptionPresent() throws Throwable {
beginAt("/testPage.html");
assertPassFail("assertRadioOptionPresent",
Modified:
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
===================================================================
---
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
2006-06-09 09:01:20 UTC (rev 478)
+++
trunk/jwebunit-commons-tests/src/main/resources/testcases/FormAssertionsTest/testPage.html
2006-06-09 09:45:22 UTC (rev 479)
@@ -31,6 +31,7 @@
<option value="3">three</option>
<option value="4">four</option>
</select>
+ <input type="reset" name="resetButton"/>
</form>
</table>
</body>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development