mshtml: Added a test showing that HTMLDocument does not support ITargetFrame interface.
This commit is contained in:
parent
e5558c5ca3
commit
44aa20720d
|
@ -6288,6 +6288,11 @@ static void test_QueryInterface(IHTMLDocument2 *doc)
|
|||
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
|
||||
ok(qi == NULL, "qi=%p, expected NULL\n", qi);
|
||||
|
||||
qi = (void*)0xdeadbeef;
|
||||
hres = IUnknown_QueryInterface(doc, &IID_ITargetFrame, (void**)&qi);
|
||||
ok(hres == E_NOINTERFACE, "QueryInterface returned %08x, expected E_NOINTERFACE\n", hres);
|
||||
ok(qi == NULL, "qi=%p, expected NULL\n", qi);
|
||||
|
||||
hres = IUnknown_QueryInterface(doc, &IID_IDispatch, (void**)&qi);
|
||||
ok(hres == S_OK, "Could not get IDispatch interface: %08x\n", hres);
|
||||
ok(qi != (IUnknown*)doc, "disp == doc\n");
|
||||
|
|
Loading…
Reference in New Issue