>From 1e62ee663e6b250601eb9fdc678bae294fd1e02f Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Thu, 22 Sep 2011 20:09:59 +1000
Subject: [PATCH] Fix test for Windows 7 with IE9
To: wine-patches <wine-patches@winehq.org>

---
 dlls/mshtml/tests/dom.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 83b2675..d02f5ec 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -4473,7 +4473,8 @@ static void test_window(IHTMLDocument2 *doc)
     str = NULL;
     hres = IHTMLWindow2_toString(window, &str);
     ok(hres == S_OK, "toString failed: %08x\n", hres);
-    ok(!strcmp_wa(str, "[object]"), "toString returned %s\n", wine_dbgstr_w(str));
+    ok(!strcmp_wa(str, "[object]") ||
+       !strcmp_wa(str, "[object Window]") /* win7 ie9 */, "toString returned %s\n", wine_dbgstr_w(str));
     SysFreeString(str);
 
     test_window_name(window, NULL);
-- 
1.7.4.1

