Skip to content
Commit 70f52cb1 authored by kohsuke's avatar kohsuke
Browse files

commenting out the test while I work on the Rhino/HtmlUnit problem

In HtmlUnit emulated script, XmlHttpRequest runs synchronously. So all the callbacks are fired during the send() call.
This changes the ordering of script execution --- for example, in the following script:

            var u = new Ajax.Updater(...,
                { onComplete: function() {
                    if (!u.success())   return; // we can't us onSuccess because that kicks in before onComplete
                    ...
                }});

when run inside HtmlUnit, the onComplete handler is invoked even before the "new Ajax.Updater" call finishes. Thus 'u' is undefined, which causes a failure.

(There's also a separate problem of why this exception is swallowed without being reported.)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28232 71c3de6d-444a-0410-be80-ed276b4c234a
parent 88b27b9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment