Jacek Caban : mshtml: Added IHTMLInputElement::get_type tests.
Alexandre Julliard
julliard at winehq.org
Fri May 7 09:41:16 CDT 2010
Module: wine
Branch: master
Commit: 1fdbc87e553a1089f994c51b7143fe323765a989
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fdbc87e553a1089f994c51b7143fe323765a989
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri May 7 15:21:15 2010 +0200
mshtml: Added IHTMLInputElement::get_type tests.
---
dlls/mshtml/tests/dom.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 6f33ee2..d8bbb7d 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -2033,6 +2033,18 @@ static void _test_img_name(unsigned line, IUnknown *unk, const char *pValue)
}
+#define test_input_type(i,t) _test_input_type(__LINE__,i,t)
+static void _test_input_type(unsigned line, IHTMLInputElement *input, const char *extype)
+{
+ BSTR type;
+ HRESULT hres;
+
+ hres = IHTMLInputElement_get_type(input, &type);
+ ok_(__FILE__,line) (hres == S_OK, "get_type failed: %08x\n", hres);
+ ok_(__FILE__,line) (!strcmp_wa(type, extype), "type=%s, expected %s\n", wine_dbgstr_w(type), extype);
+ SysFreeString(type);
+}
+
#define test_input_get_disabled(i,b) _test_input_get_disabled(__LINE__,i,b)
static void _test_input_get_disabled(unsigned line, IHTMLInputElement *input, VARIANT_BOOL exb)
{
@@ -5701,6 +5713,7 @@ static void test_elems(IHTMLDocument2 *doc)
test_elem3_set_disabled((IUnknown*)input, VARIANT_FALSE);
test_input_get_disabled(input, VARIANT_FALSE);
test_elem_client_size((IUnknown*)elem);
+ test_input_type(input, "text");
test_node_get_value_str((IUnknown*)elem, NULL);
test_node_put_value_str((IUnknown*)elem, "test");
More information about the wine-cvs
mailing list