Module: wine Branch: master Commit: f71904872ad0e4a452db63cef3734856d92e0ca4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f71904872ad0e4a452db63cef3...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed May 13 08:09:43 2009 +0200
mshtml/tests: Fix some test failures with IE8.
---
dlls/mshtml/tests/protocol.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/tests/protocol.c b/dlls/mshtml/tests/protocol.c index 36355bf..adee2cb 100644 --- a/dlls/mshtml/tests/protocol.c +++ b/dlls/mshtml/tests/protocol.c @@ -350,14 +350,18 @@ static void test_res_protocol(void) sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(blank_url)/sizeof(WCHAR), "size=%d\n", size); + ok(size == sizeof(blank_url)/sizeof(WCHAR) || + size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ + "size=%d\n", size);
size = 0xdeadbeef; hres = IInternetProtocolInfo_ParseUrl(protocol_info, wrong_url1, PARSE_DOMAIN, 0, buf, sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(wrong_url1)/sizeof(WCHAR), "size=%d\n", size); + ok(size == sizeof(wrong_url1)/sizeof(WCHAR) || + size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ + "size=%d\n", size);
if (0) { @@ -653,7 +657,9 @@ static void test_about_protocol(void) sizeof(buf)/sizeof(buf[0]), &size, 0); ok(hres == S_OK || hres == E_FAIL, "ParseUrl failed: %08x\n", hres); ok(buf[0] == '?', "buf changed\n"); - ok(size == sizeof(about_blank_url)/sizeof(WCHAR), "size=%d\n", size); + ok(size == sizeof(about_blank_url)/sizeof(WCHAR) || + size == sizeof(buf)/sizeof(buf[0]), /* IE8 */ + "size=%d\n", size);
if (0) {