mshtml: Added a test showing that HTMLDocument does not support ITargetFrame interface.

oldstable
Jacek Caban 2012-01-18 18:41:02 +01:00 committed by Alexandre Julliard
parent e5558c5ca3
commit 44aa20720d
1 changed files with 5 additions and 0 deletions

View File

@ -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");