Commit de00887d authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Implement HTMLWindow's toString properly.

parent 8b86429d
......@@ -1457,7 +1457,7 @@ static HRESULT WINAPI HTMLWindow2_toString(IHTMLWindow2 *iface, BSTR *String)
if(!String)
return E_INVALIDARG;
*String = SysAllocString(L"[object]");
*String = SysAllocString(L"[object Window]");
return *String ? S_OK : E_OUTOFMEMORY;
}
......
......@@ -222,6 +222,7 @@ sync_test("builtin_toString", function() {
test("styleSheetRules", sheet.rules, "MSCSSRuleList");
test("styleSheets", document.styleSheets, "StyleSheetList");
test("textRange", txtRange, "TextRange");
test("window", window, "Window", "[object Window]");
test("xmlHttpRequest", new XMLHttpRequest(), "XMLHttpRequest");
if(v < 10) {
test("namespaces", document.namespaces, "MSNamespaceInfoCollection");
......
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