Commit f8d47a66 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml/tests: Fixed xmlhttprequest test failures.

parent 49ceec53
......@@ -386,6 +386,7 @@ static void pump_msgs(BOOL *b)
struct HEADER_TYPE {
const char *key;
const char *value;
BOOL skip_all_headers;
};
static void create_xmlhttprequest(IHTMLDocument2 *doc)
......@@ -450,6 +451,9 @@ static void test_header(const struct HEADER_TYPE expect[], int num)
SysFreeString(key);
SysFreeString(text);
if(expect[i].skip_all_headers)
continue;
strcpy(buf, expect[i].key);
strcat(buf, ": ");
strcat(buf, expect[i].value);
......@@ -581,10 +585,9 @@ static void test_sync_xhr(IHTMLDocument2 *doc, const char *xml_url, const char *
LONG val;
HRESULT hres;
static const struct HEADER_TYPE expect_headers[] = {
{"Server", "Apache"},
{"Accept-Ranges", "bytes"},
{"Content-Length", "51"},
{"Content-Type", "application/xml"}
{"Content-Type", "application/xml", TRUE}
};
trace("test_sync_xhr\n");
......
Markdown is supported
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