Jacek Caban : mshtml/tests: Fixed xmlhttprequest test failures.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Mar 22 10:55:12 CDT 2016
Module: wine
Branch: master
Commit: f8d47a66371579aef09670281928c03dce977b84
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f8d47a66371579aef09670281928c03dce977b84
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Mar 22 13:10:42 2016 +0100
mshtml/tests: Fixed xmlhttprequest test failures.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/tests/xmlhttprequest.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/tests/xmlhttprequest.c b/dlls/mshtml/tests/xmlhttprequest.c
index a16dad1..3153804 100644
--- a/dlls/mshtml/tests/xmlhttprequest.c
+++ b/dlls/mshtml/tests/xmlhttprequest.c
@@ -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");
More information about the wine-cvs
mailing list