[1/2] mshtml/tests: Add test for IHTMLElementCollection_item (VT_INT support)

Konstantin Kondratyuk kondratyuk at etersoft.ru
Fri Dec 19 06:34:10 CST 2008


-- 
Best regards,
Konstantin Kondratyuk.
-------------- next part --------------
From 1e8a043dda5e532d6ef36257cf6426f19c7ad7fd Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk at etersoft.ru>
Date: Fri, 19 Dec 2008 15:20:37 +0300
Subject: [PATCH] mshtml/tests: Add test for IHTMLElementCollection_item (VT_INT support)

---
 dlls/mshtml/tests/dom.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 7ba6e86..722eadb 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -1048,6 +1048,14 @@ static void _test_elem_collection(unsigned line, IUnknown *unk,
     ok_(__FILE__,line) (hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres);
     ok_(__FILE__,line) (disp == NULL, "disp != NULL\n");
 
+    V_VT(&name) = VT_I4;
+    V_I4(&name) = 0;
+    disp = (void*)0xdeadbeef;
+    hres = IHTMLElementCollection_item(col, name, index, &disp);
+    ok_(__FILE__,line) (hres == S_OK, "item failed: %08x\n", hres);
+    if(len>0)
+        ok_(__FILE__,line) (disp != NULL, "item returned NULL\n");
+
     IHTMLElementCollection_Release(col);
 }
 
-- 
1.6.0.2.GIT



More information about the wine-patches mailing list