From 6cfc28daa106404207766c8e44343a317f244995 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 27 Oct 2008 20:31:45 -0500 Subject: [PATCH] mshtml/tests: skip some tests if gecko isn't installed --- dlls/mshtml/tests/dom.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 7a14c29..76a2443 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -3574,7 +3574,12 @@ 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(hres == E_UNEXPECTED) { + skip("Could not get document body. Assuming no Gecko installed.\n"); + } + else { + ok(hres == S_OK, "get_body failed: %08x\n", hres); + } if(body) { IHTMLElement_Release(body); -- 1.5.4.3