mshtml: Add test for OmNavigator_get_appName.

This commit is contained in:
Vladimir Pankratov 2009-08-18 13:15:41 +05:00 committed by Alexandre Julliard
parent ecd7c11b5d
commit 33fe602bcd
1 changed files with 6 additions and 0 deletions

View File

@ -2445,6 +2445,12 @@ static void test_navigator(IHTMLDocument2 *doc)
ok(!strcmp_wa(bstr, "Mozilla"), "Unexpected appCodeName %s\n", dbgstr_w(bstr)); ok(!strcmp_wa(bstr, "Mozilla"), "Unexpected appCodeName %s\n", dbgstr_w(bstr));
SysFreeString(bstr); SysFreeString(bstr);
bstr = NULL;
hres = IOmNavigator_get_appName(navigator, &bstr);
ok(hres == S_OK, "get_appName failed: %08x\n", hres);
ok(!strcmp_wa(bstr, "Microsoft Internet Explorer"), "Unexpected appCodeName %s\n", dbgstr_w(bstr));
SysFreeString(bstr);
bstr = NULL; bstr = NULL;
hres = IOmNavigator_get_platform(navigator, &bstr); hres = IOmNavigator_get_platform(navigator, &bstr);
ok(hres == S_OK, "get_platform failed: %08x\n", hres); ok(hres == S_OK, "get_platform failed: %08x\n", hres);