mshtml: Return null from IHTMLStorage::getItem stub.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-04-21 17:23:41 +02:00 committed by Alexandre Julliard
parent e764509466
commit 655adf6521
2 changed files with 7 additions and 1 deletions

View File

@ -145,8 +145,11 @@ static HRESULT WINAPI HTMLStorage_key(IHTMLStorage *iface, LONG lIndex, BSTR *p)
static HRESULT WINAPI HTMLStorage_getItem(IHTMLStorage *iface, BSTR bstrKey, VARIANT *p)
{
HTMLStorage *This = impl_from_IHTMLStorage(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrKey), p);
return E_NOTIMPL;
V_VT(p) = VT_NULL;
return S_OK;
}
static HRESULT WINAPI HTMLStorage_setItem(IHTMLStorage *iface, BSTR bstrKey, BSTR bstrValue)

View File

@ -412,6 +412,9 @@ sync_test("storage", function() {
"typeof(window.sessionStorage) = " + typeof(window.sessionStorage));
ok(typeof(window.localStorage) === "object" || typeof(window.localStorage) === "unknown",
"typeof(window.localStorage) = " + typeof(window.localStorage));
var item = sessionStorage.getItem("nonexisting");
ok(item === null, "item = " + item);
});
async_test("animation", function() {