Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14851/test/net/sourceforge/jwebunit

Modified Files:
        FramesAndWindowsTest.java 
Log Message:
Added a test that detects the current problems with HttpUnit 1.6 combined with 
Rhino 1.6-R2. This test passes with HttpUnit 1.6.1 and the js.jar from that zip.

Index: FramesAndWindowsTest.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/FramesAndWindowsTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** FramesAndWindowsTest.java   26 Dec 2005 14:27:06 -0000      1.11
--- FramesAndWindowsTest.java   29 Dec 2005 14:49:23 -0000      1.12
***************
*** 25,30 ****
          super.setUp();
          getTestContext().setBaseUrl(HOST_PATH + "/FramesAndWindowsTest");
!     }    
! 
      /**
       * helper function
--- 25,39 ----
          super.setUp();
          getTestContext().setBaseUrl(HOST_PATH + "/FramesAndWindowsTest");
!     }
!     
!     public void testHttpUnitWithRhinoForWindowOpen() throws Throwable {
!         try {
!             beginAt("RootPage.html");
!             clickLink("ChildPage1"); // does javascript:window.open(...)
!         } catch (NoSuchFieldError e) {
!             fail("HttpUnit 1.6 does not support the current version of 
Rhino");
!         }
!     }   
!     
      /**
       * helper function
***************
*** 36,40 ****
      }
      
!     // ------------ windows test ------------
      
      public void testOpenWindow() throws Throwable {
--- 45,49 ----
      }
      
!     // ------------ windows test ------------    
      
      public void testOpenWindow() throws Throwable {



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to