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
2d3ec124
Commit
2d3ec124
authored
Mar 08, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/tests: A couple of newline normalization tests for text nodes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9eecacbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
reader.c
dlls/xmllite/tests/reader.c
+4
-6
No files found.
dlls/xmllite/tests/reader.c
View file @
2d3ec124
...
...
@@ -1724,6 +1724,8 @@ static void test_read_cdata(void)
static
struct
test_entry
text_tests
[]
=
{
{
"<a>simple text</a>"
,
""
,
"simple text"
,
S_OK
},
{
"<a>text ]]> text</a>"
,
""
,
""
,
WC_E_CDSECTEND
},
{
"<a>
\n
\r\n
\n\n
text</a>"
,
""
,
"
\n
\n
\n\n
text"
,
S_OK
,
S_OK
,
TRUE
},
{
"<a>
\r
\r\r\n
\n\n
text</a>"
,
""
,
"
\n
\n\n
\n\n
text"
,
S_OK
,
S_OK
,
TRUE
},
{
NULL
}
};
...
...
@@ -1748,17 +1750,13 @@ static void test_read_text(void)
type
=
XmlNodeType_None
;
hr
=
IXmlReader_Read
(
reader
,
&
type
);
/* read one more to get to
CDATA
*/
/* read one more to get to
text node
*/
if
(
type
==
XmlNodeType_Element
)
{
type
=
XmlNodeType_None
;
hr
=
IXmlReader_Read
(
reader
,
&
type
);
}
if
(
test
->
hr_broken
)
ok
(
hr
==
test
->
hr
||
broken
(
hr
==
test
->
hr_broken
),
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
else
ok
(
hr
==
test
->
hr
,
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
ok
(
hr
==
test
->
hr
,
"got %08x for %s
\n
"
,
hr
,
test
->
xml
);
if
(
hr
==
S_OK
)
{
const
WCHAR
*
str
;
...
...
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