Revision: 595
          http://svn.sourceforge.net/jwebunit/?rev=595&view=rev
Author:   henryju
Date:     2006-10-30 23:15:54 -0800 (Mon, 30 Oct 2006)

Log Message:
-----------
Fix setExpectedJavascriptConfirm test.

Modified Paths:
--------------
    
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
    
branches/1.x/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Confirm.html

Modified: 
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
===================================================================
--- 
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
        2006-10-30 06:57:12 UTC (rev 594)
+++ 
branches/1.x/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptTest.java
        2006-10-31 07:15:54 UTC (rev 595)
@@ -54,7 +54,7 @@
     public void testConfirm() {
        setExpectedJavaScriptConfirm("Foo Bar", true);
         beginAt("Confirm.html");
-        assertTextPresent("Toto");
-        assertTextNotPresent("Titi");
+        assertLinkPresent("Toto");
+        assertLinkNotPresent("Titi");
     }
 }

Modified: 
branches/1.x/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Confirm.html
===================================================================
--- 
branches/1.x/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Confirm.html
        2006-10-30 06:57:12 UTC (rev 594)
+++ 
branches/1.x/jwebunit-commons-tests/src/main/resources/testcases/JavaScriptTest/Confirm.html
        2006-10-31 07:15:54 UTC (rev 595)
@@ -2,10 +2,10 @@
        <BODY>
                <SCRIPT LANGUAGE="javascript">
                        if (confirm("Foo Bar")) {
-                               document.write("Toto");
+                               document.write("<a id='Toto'/>");
                        }
                        else {
-                               document.write("Titi");
+                               document.write("<a id='Titi'/>");
                        }
                </SCRIPT>
        </BODY>


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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to