Alistair Leslie-Hughes : mshtml: Add IHTMLStyle margin tests.
Alexandre Julliard
julliard at winehq.org
Fri Sep 12 07:01:15 CDT 2008
Module: wine
Branch: master
Commit: 3ed35309c1f04763f38985ae0fa1f2697f4fd39f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3ed35309c1f04763f38985ae0fa1f2697f4fd39f
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Sep 11 11:50:29 2008 +1000
mshtml: Add IHTMLStyle margin tests.
---
dlls/mshtml/tests/dom.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index c294140..ed28808 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -2011,6 +2011,24 @@ static void test_default_style(IHTMLStyle *style)
ok(V_VT(&v) == VT_BSTR, "V_VT(v)=%d\n", V_VT(&v));
ok(!strcmp_wa(V_BSTR(&v), "auto"), "V_BSTR(v)=%s\n", dbgstr_w(V_BSTR(&v)));
VariantClear(&v);
+
+ /* margin tests */
+ str = (void*)0xdeadbeef;
+ hres = IHTMLStyle_get_margin(style, &str);
+ ok(hres == S_OK, "get_margin failed: %08x\n", hres);
+ ok(!str, "margin = %s\n", dbgstr_w(str));
+
+ str = a2bstr("1");
+ hres = IHTMLStyle_put_margin(style, str);
+ ok(hres == S_OK, "get_margin failed: %08x\n", hres);
+ SysFreeString(str);
+
+ hres = IHTMLStyle_get_margin(style, &str);
+ ok(hres == S_OK, "get_margin failed: %08x\n", hres);
+ ok(strcmp_wa(str, "1"), "margin = %s\n", dbgstr_w(str));
+
+ hres = IHTMLStyle_put_margin(style, NULL);
+ ok(hres == S_OK, "get_margin failed: %08x\n", hres);
}
static void test_default_selection(IHTMLDocument2 *doc)
More information about the wine-cvs
mailing list