Commit 827b23ed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Implement known IHTMLCSSStyleDeclaration BSTR properties.

parent 587dcf6e
...@@ -2400,6 +2400,19 @@ static void test_body_style(IHTMLStyle *style) ...@@ -2400,6 +2400,19 @@ static void test_body_style(IHTMLStyle *style)
ok(!strcmp_wa(V_BSTR(&v), "20%"), "backgroundPositionY = %s\n", wine_dbgstr_w(V_BSTR(&v))); ok(!strcmp_wa(V_BSTR(&v), "20%"), "backgroundPositionY = %s\n", wine_dbgstr_w(V_BSTR(&v)));
VariantClear(&v); VariantClear(&v);
if(css_style) {
str = a2bstr("left 21%");
hres = IHTMLCSSStyleDeclaration_put_backgroundPosition(css_style, str);
ok(hres == S_OK, "put_backgroundPosition failed: %08x\n", hres);
SysFreeString(str);
str = NULL;
hres = IHTMLCSSStyleDeclaration_get_backgroundPosition(css_style, &str);
ok(hres == S_OK, "get_backgroundPosition failed: %08x\n", hres);
ok(!strcmp_wa(str, "left 21%"), "backgroundPosition = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
}
/* borderTopWidth */ /* borderTopWidth */
hres = IHTMLStyle_get_borderTopWidth(style, &vDefault); hres = IHTMLStyle_get_borderTopWidth(style, &vDefault);
ok(hres == S_OK, "get_borderTopWidth: %08x\n", hres); ok(hres == S_OK, "get_borderTopWidth: %08x\n", hres);
...@@ -2633,6 +2646,18 @@ static void test_body_style(IHTMLStyle *style) ...@@ -2633,6 +2646,18 @@ static void test_body_style(IHTMLStyle *style)
ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres); ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres);
ok(!str, "pageBreakAfter = %s\n", wine_dbgstr_w(str)); ok(!str, "pageBreakAfter = %s\n", wine_dbgstr_w(str));
if(css_style) {
str = a2bstr("right");
hres = IHTMLCSSStyleDeclaration_put_pageBreakAfter(css_style, str);
ok(hres == S_OK, "put_pageBreakAfter failed: %08x\n", hres);
SysFreeString(str);
hres = IHTMLCSSStyleDeclaration_get_pageBreakAfter(css_style, &str);
ok(hres == S_OK, "get_pageBreakAfter failed: %08x\n", hres);
ok(!strcmp_wa(str, "right"), "pageBreakAfter = %s\n", wine_dbgstr_w(str));
SysFreeString(str);
}
str = a2bstr("always"); str = a2bstr("always");
hres = IHTMLStyle_put_pageBreakAfter(style, str); hres = IHTMLStyle_put_pageBreakAfter(style, str);
ok(hres == S_OK, "put_pageBreakAfter failed: %08x\n", hres); ok(hres == S_OK, "put_pageBreakAfter failed: %08x\n", 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