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

mshtml: IID_IHTMLCurrentStyle4 isn't supported on IE6.

parent 5df9ff3a
...@@ -365,7 +365,6 @@ static const IID * const cstyle_iids[] = { ...@@ -365,7 +365,6 @@ static const IID * const cstyle_iids[] = {
&IID_IHTMLCurrentStyle, &IID_IHTMLCurrentStyle,
&IID_IHTMLCurrentStyle2, &IID_IHTMLCurrentStyle2,
&IID_IHTMLCurrentStyle3, &IID_IHTMLCurrentStyle3,
&IID_IHTMLCurrentStyle4,
NULL NULL
}; };
...@@ -4568,8 +4567,20 @@ static void test_defaults(IHTMLDocument2 *doc) ...@@ -4568,8 +4567,20 @@ static void test_defaults(IHTMLDocument2 *doc)
hres = IHTMLElement2_get_currentStyle(elem2, &cstyle); hres = IHTMLElement2_get_currentStyle(elem2, &cstyle);
ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres); ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres);
if(SUCCEEDED(hres)) { if(SUCCEEDED(hres)) {
IUnknown *unk;
test_disp((IUnknown*)cstyle, &DIID_DispHTMLCurrentStyle, "[object]"); test_disp((IUnknown*)cstyle, &DIID_DispHTMLCurrentStyle, "[object]");
test_ifaces((IUnknown*)cstyle, cstyle_iids); test_ifaces((IUnknown*)cstyle, cstyle_iids);
hres = IHTMLCurrentStyle_QueryInterface(cstyle, &IID_IHTMLCurrentStyle4, (void**)&unk);
if(SUCCEEDED(hres))
IUnknown_Release(unk);
else
{
/*IE6 doesn't have interface */
win_skip("IID_IHTMLCurrentStyle4 not supported\n");
}
IHTMLCurrentStyle_Release(cstyle); IHTMLCurrentStyle_Release(cstyle);
} }
IHTMLElement2_Release(elem2); IHTMLElement2_Release(elem2);
......
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