From fdbffd541af8b03a4c61700cb2041b8e0d0cbd3c Mon Sep 17 00:00:00 2001 From: Li Zhenbo Date: Sun, 9 Mar 2014 17:20:15 +0800 Subject: [PATCH 08/10] mshtml/tests: Added IHTMLTableRow::get_rowIndex tests. --- dlls/mshtml/tests/dom.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 1aa8273..4566df7 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5577,6 +5577,7 @@ static void test_tr_elem(IHTMLElement *elem) IHTMLTableRow *row; HRESULT hres; BSTR bstr; + LONG lval; static const elem_type_t cell_types[] = {ET_TD,ET_TD}; @@ -5617,6 +5618,11 @@ static void test_tr_elem(IHTMLElement *elem) ok(!strcmp_wa(bstr, "top"), "get_valign returned %s\n", wine_dbgstr_w(bstr)); SysFreeString(bstr); + lval = 0xdeadbeef; + hres = IHTMLTableRow_get_rowIndex(row, &lval); + ok(hres == S_OK, "get_rowIndex failed: %08x\n", hres); + ok(lval == 1, "get_rowIndex returned %d\n", lval); + IHTMLTableRow_Release(row); } -- 1.8.3.1