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
32c96e63
Commit
32c96e63
authored
Jan 27, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Stub lexical handler support for MXWriter.
parent
2830a21e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
146 additions
and
34 deletions
+146
-34
mxwriter.c
dlls/msxml3/mxwriter.c
+128
-31
saxreader.c
dlls/msxml3/tests/saxreader.c
+18
-3
No files found.
dlls/msxml3/mxwriter.c
View file @
32c96e63
This diff is collapsed.
Click to expand it.
dlls/msxml3/tests/saxreader.c
View file @
32c96e63
...
...
@@ -1628,10 +1628,11 @@ static void test_encoding(void)
}
}
static
void
test_mxwriter_
contenthandler
(
void
)
static
void
test_mxwriter_
handlers
(
void
)
{
ISAXContentHandler
*
handler
;
IMXWriter
*
writer
,
*
writer2
;
ISAXLexicalHandler
*
lh
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_MXXMLWriter
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -1640,6 +1641,7 @@ static void test_mxwriter_contenthandler(void)
EXPECT_REF
(
writer
,
1
);
/* ISAXContentHandler */
hr
=
IMXWriter_QueryInterface
(
writer
,
&
IID_ISAXContentHandler
,
(
void
**
)
&
handler
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
EXPECT_REF
(
writer
,
2
);
...
...
@@ -1651,8 +1653,21 @@ static void test_mxwriter_contenthandler(void)
EXPECT_REF
(
writer
,
3
);
EXPECT_REF
(
writer2
,
3
);
IMXWriter_Release
(
writer2
);
ISAXContentHandler_Release
(
handler
);
/* ISAXLexicalHandler */
hr
=
IMXWriter_QueryInterface
(
writer
,
&
IID_ISAXLexicalHandler
,
(
void
**
)
&
lh
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
EXPECT_REF
(
writer
,
2
);
EXPECT_REF
(
lh
,
2
);
hr
=
ISAXLexicalHandler_QueryInterface
(
lh
,
&
IID_IMXWriter
,
(
void
**
)
&
writer2
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
writer2
==
writer
,
"got %p, expected %p
\n
"
,
writer2
,
writer
);
EXPECT_REF
(
writer
,
3
);
EXPECT_REF
(
writer2
,
3
);
IMXWriter_Release
(
writer2
);
IMXWriter_Release
(
writer
);
}
...
...
@@ -2867,7 +2882,7 @@ START_TEST(saxreader)
get_supported_mxwriter_data
(
msxmlsupported_data
);
if
(
is_mxwriter_supported
(
&
CLSID_MXXMLWriter
,
msxmlsupported_data
))
{
test_mxwriter_
contenthandler
();
test_mxwriter_
handlers
();
test_mxwriter_startenddocument
();
test_mxwriter_startendelement
();
test_mxwriter_characters
();
...
...
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