mshtml/tests: Skip tests if no Gecko installed
Austin Lund
austin.lund at gmail.com
Thu Feb 5 21:08:49 CST 2009
-------------- next part --------------
From 3fb8b785b07cc287e9e1b4b0115ce614e67ac0f7 Mon Sep 17 00:00:00 2001
From: Austin Lund <austin.lund at gmail.com>
Date: Fri, 6 Feb 2009 13:06:00 +1000
Subject: [PATCH] mshtml/tests: Skip tests if no Gecko installed
---
dlls/mshtml/tests/dom.c | 2 +-
dlls/mshtml/tests/script.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 62a07bc..e22847d 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -4117,9 +4117,9 @@ static void run_domtest(const char *str, domtest_t test)
}
hres = IHTMLDocument2_get_body(doc, &body);
- ok(hres == S_OK, "get_body failed: %08x\n", hres);
if(body) {
+ ok(hres == S_OK, "get_body failed: %08x\n", hres);
IHTMLElement_Release(body);
test(doc);
}else {
diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index d6a5e5f..10a8966 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -403,14 +403,13 @@ static IHTMLDocument2 *create_and_load_doc(const char *str)
}
hres = IHTMLDocument2_get_body(doc, &body);
- ok(hres == S_OK, "get_body failed: %08x\n", hres);
-
if(!body) {
skip("Could not get document body. Assuming no Gecko installed.\n");
ref = IHTMLDocument2_Release(doc);
ok(!ref, "ref = %d\n", ref);
return NULL;
}
+ ok(hres == S_OK, "get_body failed: %08x\n", hres);
/* Check we can query for function on the IHTMLElementBody interface */
name = (WCHAR*)ucPtr;
--
1.5.6.3
More information about the wine-patches
mailing list