Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0532df61
Commit
0532df61
authored
Sep 19, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/test: Add test for ISAXXMLReader_parse (passing XMLDOMDocument as argument).
parent
eb72aa05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
saxreader.c
dlls/msxml3/tests/saxreader.c
+21
-0
No files found.
dlls/msxml3/tests/saxreader.c
View file @
0532df61
...
...
@@ -479,6 +479,9 @@ static void test_saxreader(void)
HANDLE
file
;
static
const
CHAR
testXmlA
[]
=
"test.xml"
;
static
const
WCHAR
testXmlW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'x'
,
'm'
,
'l'
,
0
};
IXMLDOMDocument
*
domDocument
;
BSTR
bstrData
;
VARIANT_BOOL
vBool
;
hr
=
CoCreateInstance
(
&
CLSID_SAXXMLReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ISAXXMLReader
,
(
LPVOID
*
)
&
reader
);
...
...
@@ -576,6 +579,24 @@ static void test_saxreader(void)
DeleteFileA
(
testXmlA
);
hr
=
CoCreateInstance
(
&
CLSID_DOMDocument
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMDocument
,
(
LPVOID
*
)
&
domDocument
);
if
(
FAILED
(
hr
))
{
skip
(
"Failed to create DOMDocument instance
\n
"
);
return
;
}
bstrData
=
SysAllocString
(
szSimpleXML
);
hr
=
IXMLDOMDocument_loadXML
(
domDocument
,
bstrData
,
&
vBool
);
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
domDocument
;
expectCall
=
contentHandlerTest2
;
hr
=
ISAXXMLReader_parse
(
reader
,
var
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
test_expect_call
(
CH_ENDTEST
);
IXMLDOMDocument_Release
(
domDocument
);
ISAXXMLReader_Release
(
reader
);
}
...
...
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