Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

JSFUNIT-275 Change to call closeAllWindows on SessionUnBound

git-svn-id: https://svn.jboss.org/repos/jsfunit/trunk@574 992343fe-802f-0410-85da-d31fbad5f0a6
  • Loading branch information...
commit 8ebbb2b5913488266bd1f585b1da85b68bae8fa2 1 parent dc06ac2
@aslakknutsen aslakknutsen authored
View
18 jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/framework/WebClientSpec.java
@@ -291,23 +291,7 @@ public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent)
// as per HtmlUnit issue:
// https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2014629&group_id=47038
// -----------------------------------------------------------------------------------
-
- // first get the top windows and then close them to avoid ConcurrentModificationException
- final List<TopLevelWindow> topWindows = new ArrayList<TopLevelWindow>();
- for (final Iterator<WebWindow> iter=webClient.getWebWindows().iterator();iter.hasNext();)
- {
- final WebWindow window = iter.next();
- if (window instanceof TopLevelWindow)
- {
- topWindows.add((TopLevelWindow)window);
- }
- }
- for (final Iterator<TopLevelWindow> iter=topWindows.iterator(); iter.hasNext();)
- {
- final TopLevelWindow window = iter.next();
- window.close();
- }
-
+ webClient.closeAllWindows();
}
public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent)
Please sign in to comment.
Something went wrong with that request. Please try again.