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
742eb4ba
Commit
742eb4ba
authored
Jul 27, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Added test for ISAXXMLReader_parseURL.
parent
b15345d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
saxreader.c
dlls/msxml3/tests/saxreader.c
+15
-0
No files found.
dlls/msxml3/tests/saxreader.c
View file @
742eb4ba
...
...
@@ -476,6 +476,9 @@ static void test_saxreader(void)
ULARGE_INTEGER
liSize
;
LARGE_INTEGER
liPos
;
ULONG
bytesWritten
;
HANDLE
file
;
static
const
WCHAR
testXmlW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'.'
,
'x'
,
'm'
,
'l'
,
0
};
hr
=
CoCreateInstance
(
&
CLSID_SAXXMLReader
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_ISAXXMLReader
,
(
LPVOID
*
)
&
reader
);
...
...
@@ -561,6 +564,18 @@ static void test_saxreader(void)
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
test_expect_call
(
CH_ENDTEST
);
file
=
CreateFileW
(
testXmlW
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"Could not create file: %u
\n
"
,
GetLastError
());
WriteFile
(
file
,
szTestXML
,
sizeof
(
szTestXML
)
-
1
,
&
bytesWritten
,
NULL
);
CloseHandle
(
file
);
expectCall
=
contentHandlerTest1
;
hr
=
ISAXXMLReader_parseURL
(
reader
,
testXmlW
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
test_expect_call
(
CH_ENDTEST
);
DeleteFileW
(
testXmlW
);
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