Commit 655adf65 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return null from IHTMLStorage::getItem stub.

parent e7645094
......@@ -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)
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment