Commit 35bd57ec authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

msxml3/tests: Added invalid host XHR tests.

parent f6b5b310
...@@ -1787,6 +1787,18 @@ static void test_XMLHTTP(void) ...@@ -1787,6 +1787,18 @@ static void test_XMLHTTP(void)
SysFreeString(str); SysFreeString(str);
IXMLHttpRequest_Release(xhr); IXMLHttpRequest_Release(xhr);
/* invalid host */
xhr = create_xhr();
test_open(xhr, "GET", "http://invalid.host.test.winehq.org/test/path", S_OK);
V_VT(&varbody) = VT_EMPTY;
hr = IXMLHttpRequest_send(xhr, varbody);
todo_wine
ok(hr == INET_E_RESOURCE_NOT_FOUND, "send to invalid host returned %#x.\n", hr);
IXMLHttpRequest_Release(xhr);
free_bstrs(); free_bstrs();
} }
...@@ -1819,6 +1831,18 @@ static void test_server_xhr(void) ...@@ -1819,6 +1831,18 @@ static void test_server_xhr(void)
SysFreeString(response); SysFreeString(response);
IServerXMLHTTPRequest_Release(xhr); IServerXMLHTTPRequest_Release(xhr);
/* invalid host */
xhr = create_server_xhr();
test_server_open(xhr, "GET", "http://invalid.host.test.winehq.org/test/path", S_OK);
V_VT(&body) = VT_EMPTY;
hr = IServerXMLHTTPRequest_send(xhr, body);
todo_wine
ok(hr == WININET_E_NAME_NOT_RESOLVED, "send to invalid host returned %#x.\n", hr);
IServerXMLHTTPRequest_Release(xhr);
free_bstrs(); free_bstrs();
} }
......
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