mshtml: Add IHTMLXMLHttpRequest::responseText() method implementation.

This commit is contained in:
Zhenbo Li 2015-07-22 23:33:50 +08:00 committed by Alexandre Julliard
parent 41c45f3686
commit 4ea5d00e58
2 changed files with 14 additions and 5 deletions

View File

@ -647,9 +647,9 @@ static void test_async_xhr(IHTMLDocument2 *doc, const char *xml_url)
text = NULL;
hres = IHTMLXMLHttpRequest_get_responseText(xhr, &text);
todo_wine ok(hres == S_OK, "get_responseText failed: %08x\n", hres);
todo_wine ok(text != NULL, "test == NULL\n");
todo_wine ok(!strcmp_wa(text, EXPECT_RESPONSE_TEXT), "expect %s, got %s\n",
ok(hres == S_OK, "get_responseText failed: %08x\n", hres);
ok(text != NULL, "test == NULL\n");
ok(!strcmp_wa(text, EXPECT_RESPONSE_TEXT), "expect %s, got %s\n",
EXPECT_RESPONSE_TEXT, wine_dbgstr_w(text));
SysFreeString(text);

View File

@ -289,8 +289,17 @@ static HRESULT WINAPI HTMLXMLHttpRequest_get_responseBody(IHTMLXMLHttpRequest *i
static HRESULT WINAPI HTMLXMLHttpRequest_get_responseText(IHTMLXMLHttpRequest *iface, BSTR *p)
{
HTMLXMLHttpRequest *This = impl_from_IHTMLXMLHttpRequest(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
nsAString nsstr;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
if(!p)
return E_POINTER;
nsAString_Init(&nsstr, NULL);
nsres = nsIXMLHttpRequest_GetResponseText(This->nsxhr, &nsstr);
return return_nsstr(nsres, &nsstr, p);
}
static HRESULT WINAPI HTMLXMLHttpRequest_get_responseXML(IHTMLXMLHttpRequest *iface, IDispatch **p)