Integrated a newer version of htmlunit that performs XHR calls at the correct timing.

This fixes the false positive test failure that I was struggling with since yesterday.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28266 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-03-04 19:30:06 +00:00
1 parent 9adb62aede
commit ea92d3aa13
3 files changed
+21 -24

No files matched your search

@@ -1154,11 +1154,10 @@ public abstract class HudsonTestCase extends TestCase implements RootAction {
// setJavaScriptEnabled(false);
setPageCreator(HudsonPageCreator.INSTANCE);
clients.add(new WeakReference<WebClient>(this));
// make ajax calls synchronous for predictable behaviors that simplify debugging
// make ajax calls run as post-action for predictable behaviors that simplify debugging
setAjaxController(new AjaxController() {
@Override
public boolean processSynchron(HtmlPage page, WebRequestSettings settings, boolean async) {
return true;
return false;
}
});