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

urlmon: Fixed tests on IEs that report BINDSTATUS_DECODING.

This seems to happen on some IE versions that decode gzip streams in urlmon (as opposed to wininet).
parent c1a15b75
......@@ -1468,10 +1468,10 @@ static void test_WinInetHttpInfo(IWinInetHttpInfo *http_info, DWORD progress)
ok(hres == expect || ((progress == BINDSTATUS_COOKIE_SENT || progress == BINDSTATUS_PROXYDETECTING) && hres == S_FALSE),
"progress %u: hres = %x, expected %x\n", progress, hres, expect);
if(hres == S_OK) {
if(download_state==BEFORE_DOWNLOAD && progress!=BINDSTATUS_MIMETYPEAVAILABLE)
ok(status == 0, "status = %d\n", status);
if(download_state == BEFORE_DOWNLOAD && progress != BINDSTATUS_MIMETYPEAVAILABLE && progress != BINDSTATUS_DECODING)
ok(status == 0, "progress %u: status = %d\n", progress, status);
else
ok(status == HTTP_STATUS_OK, "status = %d\n", status);
ok(status == HTTP_STATUS_OK, "progress %u: status = %d\n", progress, status);
ok(size == sizeof(DWORD), "size = %d\n", size);
}
......@@ -1816,6 +1816,9 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallbackEx *iface, ULONG u
case BINDSTATUS_COOKIE_SENT:
trace("BINDSTATUS_COOKIE_SENT\n");
break;
case BINDSTATUS_DECODING:
trace("BINDSTATUS_DECODING\n");
break;
default:
ok(0, "unexpected code %d\n", ulStatusCode);
};
......
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