<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Nikolay,<br>
      <br>
      On 06.01.2018 15:48, Nikolay Sivov wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20180106144830.15819-1-nsivov@codeweavers.com">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-unicode">
        <pre wrap="">Signed-off-by: Nikolay Sivov <a class="moz-txt-link-rfc2396E" href="mailto:nsivov@codeweavers.com" moz-do-not-send="true"><nsivov@codeweavers.com></a>
---
 dlls/mshtml/tests/dom.c       | 7 ++++++-
 dlls/mshtml/tests/jstest.html | 9 ++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index b00346759f..845983ccd6 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -6683,7 +6683,12 @@ static void test_xmlhttprequest(IHTMLWindow5 *window)
 
     hres = IHTMLWindow5_get_XMLHttpRequest(window, &var);
     ok(hres == S_OK, "get_XMLHttpRequest failed: %08x\n", hres);
-    ok(V_VT(&var) == VT_DISPATCH, "expect VT_DISPATCH, got %s\n", debugstr_variant(&var));
+    ok(V_VT(&var) == VT_DISPATCH || broken(V_VT(&var) == VT_EMPTY), "expect VT_DISPATCH, got %s\n", debugstr_variant(&var));
+
+    if (V_VT(&var) == VT_EMPTY) {
+        skip("Native XMLHTTP support is missing or disabled.\n");</pre>
      </div>
    </blockquote>
    <br>
    I think this should be win_skip (you mark that as broken() anyway).<br>
    <br>
    <blockquote type="cite"
      cite="mid:20180106144830.15819-1-nsivov@codeweavers.com">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-unicode">
        <pre wrap="">
+        return;
+    }
 
     factory = NULL;
     hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IHTMLXMLHttpRequestFactory, (void**)&factory);
diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html
index cce805032c..8d399d0747 100644
--- a/dlls/mshtml/tests/jstest.html
+++ b/dlls/mshtml/tests/jstest.html
@@ -1,5 +1,8 @@
 <html>
 <head>
+<script src="winetest.js" type="text/javascript"></script>
+</head>
+<head></pre>
      </div>
    </blockquote>
    <br>
    This is the right thing to do, but please remove ok() from
    jstest.html to avoid conflicts.<br>
    <br>
    <blockquote type="cite"
      cite="mid:20180106144830.15819-1-nsivov@codeweavers.com">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 12px;"
        lang="x-unicode">
        <pre wrap="">
 <script>
 function ok(b,m) {
     return external.ok(b, m);
@@ -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");
</pre>
      </div>
    </blockquote>
    <br>
    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.<br>
    <br>
    Thanks,<br>
    Jacek<br>
  </body>
</html>