[PATCH] mshtml/tests: Skip some tests if native XMLHTTP support is missing or disabled

Alex Henrie alexhenrie24 at gmail.com
Mon Jan 8 10:33:34 CST 2018


2018-01-08 6:47 GMT-07:00 Jacek Caban <jacek at codeweavers.com>:
> @@ -355,8 +358,12 @@ function test_text_node() {
>  }
>
>  function test_xhr() {
> +    if (typeof(XMLHttpRequest) != "object") {
> +        win_skip("XMLHTTPRequest is not available or disabled");
> +        return;
> +    }
> +
>      ok("XMLHttpRequest" in window, "XMLHttpRequest not found in window
> object\n");
>
>
> As far as I understand ok("XMLHttpRequest" in window) test works fine in
> this configuration. It would be nice to keep the test before skipping the
> rest.

Internet Explorer 6, which was the browser that originally shipped
with Windows XP, did not include XMLHttpRequest in the window object
at all. If the intent is to support testing IE6 then skipping this
test is correct.

-Alex



More information about the wine-devel mailing list