mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[WINESYNC]
- Sync comdlg32, crypt32, gdiplus, inetcomm, jscript, msctf, mshtml, msxml3, rsaenh, schannel, shlwapi, urlmon, usp10, wininet winetests. svn path=/trunk/; revision=46982
This commit is contained in:
@@ -535,6 +535,7 @@ static void test_domdoc( void )
|
||||
BSTR str;
|
||||
LONG code;
|
||||
LONG nLength = 0;
|
||||
WCHAR buff[100];
|
||||
|
||||
r = CoCreateInstance( &CLSID_DOMDocument, NULL,
|
||||
CLSCTX_INPROC_SERVER, &IID_IXMLDOMDocument, (LPVOID*)&doc );
|
||||
@@ -543,6 +544,12 @@ static void test_domdoc( void )
|
||||
|
||||
test_disp((IUnknown*)doc);
|
||||
|
||||
if (0)
|
||||
{
|
||||
/* crashes on native */
|
||||
r = IXMLDOMDocument_loadXML( doc, (BSTR)0x1, NULL );
|
||||
}
|
||||
|
||||
/* try some stupid things */
|
||||
r = IXMLDOMDocument_loadXML( doc, NULL, NULL );
|
||||
ok( r == S_FALSE, "loadXML failed\n");
|
||||
@@ -601,6 +608,15 @@ static void test_domdoc( void )
|
||||
ok( r == S_FALSE, "should be no document element\n");
|
||||
ok( element == NULL, "Element should be NULL\n");
|
||||
|
||||
/* test for BSTR handling, pass broken BSTR */
|
||||
memcpy(&buff[2], szComplete1, sizeof(szComplete1));
|
||||
/* just a big length */
|
||||
*(DWORD*)buff = 0xf0f0;
|
||||
b = VARIANT_FALSE;
|
||||
r = IXMLDOMDocument_loadXML( doc, &buff[2], &b );
|
||||
ok( r == S_OK, "loadXML failed\n");
|
||||
ok( b == VARIANT_TRUE, "failed to load XML string\n");
|
||||
|
||||
/* try to load something valid */
|
||||
b = VARIANT_FALSE;
|
||||
str = SysAllocString( szComplete1 );
|
||||
@@ -2734,6 +2750,12 @@ static void test_XMLHTTP(void)
|
||||
SysFreeString(str2);
|
||||
|
||||
hr = IXMLHttpRequest_send(pXMLHttpRequest, varbody);
|
||||
if (hr == INET_E_RESOURCE_NOT_FOUND)
|
||||
{
|
||||
skip("No connection could be made with crossover.codeweavers.com\n");
|
||||
IXMLHttpRequest_Release(pXMLHttpRequest);
|
||||
return;
|
||||
}
|
||||
todo_wine ok(hr == S_OK, "IXMLHttpRequest_send should have succeeded instead of failing with 0x%08x\n", hr);
|
||||
VariantClear(&varbody);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user