mshtml: Added IOmNavigator::onLine semi-stub.

This commit is contained in:
Jacek Caban 2012-10-17 12:18:48 +02:00 committed by Alexandre Julliard
parent 5e0f624c41
commit 75994335e3
2 changed files with 11 additions and 2 deletions

View File

@ -881,8 +881,11 @@ static HRESULT WINAPI OmNavigator_get_connectionSpeed(IOmNavigator *iface, LONG
static HRESULT WINAPI OmNavigator_get_onLine(IOmNavigator *iface, VARIANT_BOOL *p)
{
OmNavigator *This = impl_from_IOmNavigator(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
WARN("(%p)->(%p) semi-stub, returning true\n", This, p);
*p = VARIANT_TRUE;
return S_OK;
}
static HRESULT WINAPI OmNavigator_get_userProfile(IOmNavigator *iface, IHTMLOpsProfile **p)

View File

@ -4496,6 +4496,7 @@ static void test_navigator(IHTMLDocument2 *doc)
{
IHTMLWindow2 *window;
IOmNavigator *navigator, *navigator2;
VARIANT_BOOL b;
char buf[512];
DWORD size;
ULONG ref;
@ -4581,6 +4582,11 @@ static void test_navigator(IHTMLDocument2 *doc)
ok(!strcmp_wa(bstr, "[object]"), "toString returned %s\n", wine_dbgstr_w(bstr));
SysFreeString(bstr);
b = 100;
hres = IOmNavigator_get_onLine(navigator, &b);
ok(hres == S_OK, "get_onLine failed: %08x\n", hres);
ok(b == VARIANT_TRUE, "onLine = %x\n", b);
size = sizeof(buf);
hres = ObtainUserAgentString(0, buf, &size);
ok(hres == S_OK, "ObtainUserAgentString failed: %08x\n", hres);