Commit 56e80e18 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

mshtml: Implemented IHTMLStyle_put_borderBottomColor.

parent de83ea61
...@@ -1577,8 +1577,10 @@ static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT ...@@ -1577,8 +1577,10 @@ static HRESULT WINAPI HTMLStyle_get_borderRightColor(IHTMLStyle *iface, VARIANT
static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v) static HRESULT WINAPI HTMLStyle_put_borderBottomColor(IHTMLStyle *iface, VARIANT v)
{ {
HTMLStyle *This = impl_from_IHTMLStyle(iface); HTMLStyle *This = impl_from_IHTMLStyle(iface);
FIXME("(%p)->(v%d)\n", This, V_VT(&v));
return E_NOTIMPL; TRACE("(%p)->(v%d)\n", This, V_VT(&v));
return set_nsstyle_attr_var(This->nsstyle, STYLEID_BORDER_BOTTOM_COLOR, &v, ATTR_HEX_INT);
} }
static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p) static HRESULT WINAPI HTMLStyle_get_borderBottomColor(IHTMLStyle *iface, VARIANT *p)
......
...@@ -5479,6 +5479,24 @@ static void test_default_style(IHTMLStyle *style) ...@@ -5479,6 +5479,24 @@ static void test_default_style(IHTMLStyle *style)
hres = IHTMLStyle_put_borderRightColor(style, vDefault); hres = IHTMLStyle_put_borderRightColor(style, vDefault);
ok(hres == S_OK, "putborderRightColorr: %08x\n", hres); ok(hres == S_OK, "putborderRightColorr: %08x\n", hres);
/* borderBottomColor */
hres = IHTMLStyle_get_borderBottomColor(style, &vDefault);
ok(hres == S_OK, "get_borderBottomColor: %08x\n", hres);
V_VT(&v) = VT_BSTR;
V_BSTR(&v) = a2bstr("cyan");
hres = IHTMLStyle_put_borderBottomColor(style, v);
ok(hres == S_OK, "put_borderBottomColor: %08x\n", hres);
VariantClear(&v);
hres = IHTMLStyle_get_borderBottomColor(style, &v);
ok(hres == S_OK, "get_borderBottomColor: %08x\n", hres);
ok(!strcmp_wa(V_BSTR(&v), "cyan"), "expected cyan = %s\n", wine_dbgstr_w(V_BSTR(&v)));
VariantClear(&v);
hres = IHTMLStyle_put_borderBottomColor(style, vDefault);
ok(hres == S_OK, "put_borderBottomColor: %08x\n", hres);
hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle2, (void**)&style2); hres = IHTMLStyle_QueryInterface(style, &IID_IHTMLStyle2, (void**)&style2);
ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08x\n", hres); ok(hres == S_OK, "Could not get IHTMLStyle2 iface: %08x\n", hres);
if(SUCCEEDED(hres)) { if(SUCCEEDED(hres)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment