mshtml: Implement IHTMLStyle_put_textDecorationUnderline.

This commit is contained in:
Alistair Leslie-Hughes 2009-02-08 20:06:57 +11:00 committed by Alexandre Julliard
parent 957a50aa72
commit 28278db787
2 changed files with 15 additions and 2 deletions

View File

@ -925,8 +925,10 @@ static HRESULT WINAPI HTMLStyle_get_textDecorationNone(IHTMLStyle *iface, VARIAN
static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v) static HRESULT WINAPI HTMLStyle_put_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL v)
{ {
HTMLStyle *This = HTMLSTYLE_THIS(iface); HTMLStyle *This = HTMLSTYLE_THIS(iface);
FIXME("(%p)->(%x)\n", This, v);
return E_NOTIMPL; TRACE("(%p)->(%x)\n", This, v);
return set_style_attr(This, STYLEID_TEXT_DECORATION, v ? valUnderline : emptyW, 0);
} }
static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p) static HRESULT WINAPI HTMLStyle_get_textDecorationUnderline(IHTMLStyle *iface, VARIANT_BOOL *p)

View File

@ -2561,6 +2561,17 @@ static void test_default_style(IHTMLStyle *style)
ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres); ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres);
ok(b == VARIANT_FALSE, "textDecorationUnderline = %x\n", b); ok(b == VARIANT_FALSE, "textDecorationUnderline = %x\n", b);
hres = IHTMLStyle_put_textDecorationUnderline(style, VARIANT_TRUE);
ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres);
ok(b == VARIANT_FALSE, "textDecorationUnderline = %x\n", b);
hres = IHTMLStyle_get_textDecorationUnderline(style, &b);
ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres);
ok(b == VARIANT_TRUE, "textDecorationUnderline = %x\n", b);
hres = IHTMLStyle_put_textDecorationUnderline(style, VARIANT_FALSE);
ok(hres == S_OK, "get_textDecorationUnderline failed: %08x\n", hres);
b = 0xfefe; b = 0xfefe;
hres = IHTMLStyle_get_textDecorationLineThrough(style, &b); hres = IHTMLStyle_get_textDecorationLineThrough(style, &b);
ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres); ok(hres == S_OK, "get_textDecorationLineThrough failed: %08x\n", hres);