From 7d82c32b12bad868f5d76ad14ff78c06bb072efe Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 27 Oct 2008 20:32:19 -0500 Subject: [PATCH] mshtml/tests: skip a test if mshtml isn't installed --- dlls/mshtml/tests/script.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c index 90e5583..6b6b4a4 100644 --- a/dlls/mshtml/tests/script.c +++ b/dlls/mshtml/tests/script.c @@ -391,7 +391,12 @@ 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(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) { skip("Could not get document body. Assuming no Gecko installed.\n"); -- 1.5.4.3