From bedbe3c02abd58cf9c2f3d25b9273ec15e6ba498 Mon Sep 17 00:00:00 2001 From: Li Zhenbo Date: Sat, 8 Mar 2014 17:22:21 +0800 Subject: [PATCH 03/10] mshtml/tests: Added IHTMLTableRow::align tests. --- dlls/mshtml/tests/dom.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 892e812..2da1761 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -5576,6 +5576,7 @@ static void test_tr_elem(IHTMLElement *elem) IHTMLElementCollection *col; IHTMLTableRow *row; HRESULT hres; + BSTR bstr; static const elem_type_t cell_types[] = {ET_TD,ET_TD}; @@ -5592,6 +5593,18 @@ static void test_tr_elem(IHTMLElement *elem) test_elem_collection((IUnknown*)col, cell_types, sizeof(cell_types)/sizeof(*cell_types)); IHTMLElementCollection_Release(col); + bstr = a2bstr("left"); + hres = IHTMLTableRow_put_align(row, bstr); + ok(hres == S_OK, "set_align failed: %08x\n", hres); + SysFreeString(bstr); + + bstr = NULL; + hres = IHTMLTableRow_get_align(row, &bstr); + ok(hres == S_OK, "get_align failed: %08x\n", hres); + ok(bstr != NULL, "get_align returned NULL\n"); + ok(!strcmp_wa(bstr, "left"), "get_align returned %s\n", wine_dbgstr_w(bstr)); + SysFreeString(bstr); + IHTMLTableRow_Release(row); } -- 1.8.3.1