Commit 44ef1c9b authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

mshtml/tests: Correct another test.

parent 8a784a5e
...@@ -3688,12 +3688,13 @@ static void test_default_body(IHTMLBodyElement *body) ...@@ -3688,12 +3688,13 @@ static void test_default_body(IHTMLBodyElement *body)
V_BSTR(&v) = SysAllocString(sTextInvalid); V_BSTR(&v) = SysAllocString(sTextInvalid);
hres = IHTMLBodyElement_put_text(body, v); hres = IHTMLBodyElement_put_text(body, v);
ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres);
VariantClear(&v);
V_VT(&v) = VT_NULL; V_VT(&v) = VT_NULL;
hres = IHTMLBodyElement_get_text(body, &v); hres = IHTMLBodyElement_get_text(body, &v);
ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres);
ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v)); ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v));
ok(!lstrcmpW(sResInvalid, V_BSTR(&v)), "bstr != sResInvalid\n"); ok(!lstrcmpW(sResInvalid, V_BSTR(&v)), "v != sResInvalid\n");
VariantClear(&v); VariantClear(&v);
/* get_text - Valid Text */ /* get_text - Valid Text */
...@@ -3701,12 +3702,13 @@ static void test_default_body(IHTMLBodyElement *body) ...@@ -3701,12 +3702,13 @@ static void test_default_body(IHTMLBodyElement *body)
V_BSTR(&v) = SysAllocString(sBodyText); V_BSTR(&v) = SysAllocString(sBodyText);
hres = IHTMLBodyElement_put_text(body, v); hres = IHTMLBodyElement_put_text(body, v);
ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres);
VariantClear(&v);
V_VT(&v) = VT_NULL; V_VT(&v) = VT_NULL;
hres = IHTMLBodyElement_get_text(body, &v); hres = IHTMLBodyElement_get_text(body, &v);
ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres); ok(hres == S_OK, "expect S_OK got 0x%08d\n", hres);
ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v)); ok(V_VT(&v) == VT_BSTR, "Expected VT_BSTR got %d\n", V_VT(&v));
ok(lstrcmpW(bstr, V_BSTR(&v)), "bstr != V_BSTR(&v)\n"); ok(!strcmp_wa(V_BSTR(&v), "#ff0000"), "v != '#ff0000'\n");
VariantClear(&v); VariantClear(&v);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment