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:
parent
e764509466
commit
655adf6521
|
@ -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)
|
static HRESULT WINAPI HTMLStorage_getItem(IHTMLStorage *iface, BSTR bstrKey, VARIANT *p)
|
||||||
{
|
{
|
||||||
HTMLStorage *This = impl_from_IHTMLStorage(iface);
|
HTMLStorage *This = impl_from_IHTMLStorage(iface);
|
||||||
|
|
||||||
FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrKey), p);
|
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)
|
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));
|
"typeof(window.sessionStorage) = " + typeof(window.sessionStorage));
|
||||||
ok(typeof(window.localStorage) === "object" || typeof(window.localStorage) === "unknown",
|
ok(typeof(window.localStorage) === "object" || typeof(window.localStorage) === "unknown",
|
||||||
"typeof(window.localStorage) = " + typeof(window.localStorage));
|
"typeof(window.localStorage) = " + typeof(window.localStorage));
|
||||||
|
|
||||||
|
var item = sessionStorage.getItem("nonexisting");
|
||||||
|
ok(item === null, "item = " + item);
|
||||||
});
|
});
|
||||||
|
|
||||||
async_test("animation", function() {
|
async_test("animation", function() {
|
||||||
|
|
Loading…
Reference in New Issue