[Wine-patches] [1/3] mshtml/tests: Add test for IHTMLElementCollection_item (V_INT support) (eterbugs #2517, #1902)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Пн Дек 22 16:12:15 MSK 2008


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 1e8a043dda5e532d6ef36257cf6426f19c7ad7fd Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Fri, 19 Dec 2008 15:20:37 +0300
Subject: [PATCH] mshtml/tests: Add test for IHTMLElementCollection_item (V_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



Подробная информация о списке рассылки Wine-patches