Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d69a7165
Commit
d69a7165
authored
Sep 30, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add basic bind callback for moniker binding.
parent
938767ca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
httprequest.c
dlls/msxml3/httprequest.c
+0
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+32
-2
No files found.
dlls/msxml3/httprequest.c
View file @
d69a7165
This diff is collapsed.
Click to expand it.
dlls/msxml3/tests/domdoc.c
View file @
d69a7165
...
...
@@ -2883,10 +2883,13 @@ static void test_removeNamedItem(void)
static
void
test_XMLHTTP
(
void
)
{
static
const
WCHAR
wszBody
[]
=
{
'm'
,
'o'
,
'd'
,
'e'
,
'='
,
'T'
,
'e'
,
's'
,
't'
,
0
};
static
WCHAR
wszPOST
[]
=
{
'P'
,
'O'
,
'S'
,
'T'
,
0
};
static
WCHAR
wszUrl
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
static
const
WCHAR
wszPOST
[]
=
{
'P'
,
'O'
,
'S'
,
'T'
,
0
};
static
const
WCHAR
wszUrl
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'c'
,
'r'
,
'o'
,
's'
,
's'
,
'o'
,
'v'
,
'e'
,
'r'
,
'.'
,
'c'
,
'o'
,
'd'
,
'e'
,
'w'
,
'e'
,
'a'
,
'v'
,
'e'
,
'r'
,
's'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
'p'
,
'o'
,
's'
,
't'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'p'
,
'h'
,
'p'
,
0
};
static
const
WCHAR
xmltestW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'c'
,
'r'
,
'o'
,
's'
,
's'
,
'o'
,
'v'
,
'e'
,
'r'
,
'.'
,
'c'
,
'o'
,
'd'
,
'e'
,
'w'
,
'e'
,
'a'
,
'v'
,
'e'
,
'r'
,
's'
,
'.'
,
'c'
,
'o'
,
'm'
,
'/'
,
'x'
,
'm'
,
'l'
,
't'
,
'e'
,
's'
,
't'
,
'.'
,
'x'
,
'm'
,
'l'
,
0
};
static
const
WCHAR
wszExpectedResponse
[]
=
{
'F'
,
'A'
,
'I'
,
'L'
,
'E'
,
'D'
,
0
};
IXMLHttpRequest
*
pXMLHttpRequest
;
BSTR
bstrResponse
,
method
,
url
;
...
...
@@ -2915,6 +2918,10 @@ static void test_XMLHTTP(void)
method
=
SysAllocString
(
wszPOST
);
url
=
SysAllocString
(
wszUrl
);
/* send before open */
hr
=
IXMLHttpRequest_send
(
pXMLHttpRequest
,
dummy
);
ok
(
hr
==
E_FAIL
||
broken
(
hr
==
E_UNEXPECTED
)
/* win9x, win2k */
,
"got 0x%08x
\n
"
,
hr
);
/* invalid parameters */
hr
=
IXMLHttpRequest_open
(
pXMLHttpRequest
,
NULL
,
NULL
,
async
,
dummy
,
dummy
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
...
...
@@ -2973,6 +2980,10 @@ static void test_XMLHTTP(void)
return
;
}
todo_wine
ok
(
hr
==
S_OK
,
"IXMLHttpRequest_send should have succeeded instead of failing with 0x%08x
\n
"
,
hr
);
hr
=
IXMLHttpRequest_send
(
pXMLHttpRequest
,
varbody
);
ok
(
hr
==
E_FAIL
||
broken
(
hr
==
E_UNEXPECTED
)
/* win9x, win2k */
,
"got 0x%08x
\n
"
,
hr
);
VariantClear
(
&
varbody
);
hr
=
IXMLHttpRequest_get_responseText
(
pXMLHttpRequest
,
&
bstrResponse
);
...
...
@@ -2985,6 +2996,25 @@ static void test_XMLHTTP(void)
SysFreeString
(
bstrResponse
);
}
/* GET request */
url
=
SysAllocString
(
xmltestW
);
hr
=
IXMLHttpRequest_open
(
pXMLHttpRequest
,
_bstr_
(
"GET"
),
url
,
async
,
dummy
,
dummy
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
V_VT
(
&
varbody
)
=
VT_EMPTY
;
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
;
}
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
SysFreeString
(
url
);
IXMLHttpRequest_Release
(
pXMLHttpRequest
);
free_bstrs
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment