Revision: 5946 Author: [email protected] Date: Tue Aug 11 18:19:35 2009 Log: HtmlUnit should release its resources when the webClient reference is no longer held.
Patch by: amitmanjhi Review by: kprobst (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=5946 Modified: /trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java ======================================= --- /trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java Thu Jul 30 13:47:31 2009 +++ /trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java Tue Aug 11 18:19:35 2009 @@ -97,14 +97,13 @@ + ((HtmlPage) page).asXml()); } catch (FailingHttpStatusCodeException e) { treeLogger.log(TreeLogger.ERROR, "HTTP request failed", e); - return; } catch (MalformedURLException e) { treeLogger.log(TreeLogger.ERROR, "Bad URL", e); - return; } catch (IOException e) { treeLogger.log(TreeLogger.ERROR, "I/O error on HTTP request", e); - return; - } + } + webClient.closeAllWindows(); + return; } /** --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
