mshtml: Implement HTMLPerformance's toString.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2021-10-07 16:52:37 +03:00 committed by Alexandre Julliard
parent 14c190fc14
commit 909839a1d6
2 changed files with 5 additions and 2 deletions

View File

@ -2161,8 +2161,10 @@ static HRESULT WINAPI HTMLPerformance_get_timing(IHTMLPerformance *iface, IHTMLP
static HRESULT WINAPI HTMLPerformance_toString(IHTMLPerformance *iface, BSTR *string) static HRESULT WINAPI HTMLPerformance_toString(IHTMLPerformance *iface, BSTR *string)
{ {
HTMLPerformance *This = impl_from_IHTMLPerformance(iface); HTMLPerformance *This = impl_from_IHTMLPerformance(iface);
FIXME("(%p)->(%p)\n", This, string);
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, string);
return dispex_to_string(&This->dispex, string);
} }
static HRESULT WINAPI HTMLPerformance_toJSON(IHTMLPerformance *iface, VARIANT *var) static HRESULT WINAPI HTMLPerformance_toJSON(IHTMLPerformance *iface, VARIANT *var)

View File

@ -216,6 +216,7 @@ sync_test("builtin_toString", function() {
if(localStorage) test("localStorage", localStorage, "Storage"); if(localStorage) test("localStorage", localStorage, "Storage");
test("location", window.location, "Object", window.location.href); test("location", window.location, "Object", window.location.href);
test("navigator", window.navigator, "Navigator"); test("navigator", window.navigator, "Navigator");
test("performance", window.performance, "Performance");
test("screen", window.screen, "Screen"); test("screen", window.screen, "Screen");
test("sessionStorage", window.sessionStorage, "Storage"); test("sessionStorage", window.sessionStorage, "Storage");
test("style", document.body.style, "MSStyleCSSProperties"); test("style", document.body.style, "MSStyleCSSProperties");