Revision: 922
          http://jwebunit.svn.sourceforge.net/jwebunit/?rev=922&view=rev
Author:   henryju
Date:     2011-09-23 14:50:45 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
Fix a test that was forgetting to close browser.

Modified Paths:
--------------
    
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java

Modified: 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
===================================================================
--- 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
 2011-09-23 14:46:55 UTC (rev 921)
+++ 
trunk/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/JavaScriptEventsTest.java
 2011-09-23 14:50:45 UTC (rev 922)
@@ -81,19 +81,22 @@
         assertTextPresent("Here is the text we expect");
     }
  
-    @Test public void testLinkAssertsWorkJavascriptDisabled() {
+    @Test 
+    public void testLinkAssertsWorkJavascriptDisabled() {
         setScriptingEnabled(false);
         beginAt("index.html");
         clickLink("linkNext");
         assertTitleEquals("Startpage");
         assertTextNotPresent("Here is the text we expect");
+        closeBrowser();
 
         beginAt("index.html");
         clickButton("next");
         assertTitleEquals("Startpage");
         assertTextNotPresent("Here is the text we expect");
+        closeBrowser();
+        
         setScriptingEnabled(true);
-        
         // and test that javascript is enabled for the next begin
         beginAt("index.html");
         clickLink("linkNext");

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


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to