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
68963c9f
Commit
68963c9f
authored
Jul 23, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add test for parsing document with '\r' characters.
parent
c5458520
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
saxreader.c
dlls/msxml3/tests/saxreader.c
+37
-1
No files found.
dlls/msxml3/tests/saxreader.c
View file @
68963c9f
...
...
@@ -52,7 +52,15 @@ static const WCHAR szSimpleXML[] = {
'<'
,
'/'
,
'B'
,
'a'
,
'n'
,
'k'
,
'A'
,
'c'
,
'c'
,
'o'
,
'u'
,
'n'
,
't'
,
'>'
,
'\n'
,
'\0'
};
static
CHAR
szTestXML
[]
=
static
const
WCHAR
szCarriageRetTest
[]
=
{
'<'
,
'?'
,
'x'
,
'm'
,
'l'
,
' '
,
'v'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'='
,
'"'
,
'1'
,
'.'
,
'0'
,
'"'
,
'?'
,
'>'
,
'\r'
,
'\n'
,
'<'
,
'B'
,
'a'
,
'n'
,
'k'
,
'A'
,
'c'
,
'c'
,
'o'
,
'u'
,
'n'
,
't'
,
'>'
,
'\r'
,
'\n'
,
'\t'
,
'<'
,
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
'>'
,
'1'
,
'2'
,
'3'
,
'4'
,
'<'
,
'/'
,
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
'>'
,
'\r'
,
'\n'
,
'\t'
,
'<'
,
'N'
,
'a'
,
'm'
,
'e'
,
'>'
,
'C'
,
'a'
,
'p'
,
't'
,
'a'
,
'i'
,
'n'
,
' '
,
'A'
,
'h'
,
'a'
,
'b'
,
'<'
,
'/'
,
'N'
,
'a'
,
'm'
,
'e'
,
'>'
,
'\r'
,
'\n'
,
'<'
,
'/'
,
'B'
,
'a'
,
'n'
,
'k'
,
'A'
,
'c'
,
'c'
,
'o'
,
'u'
,
'n'
,
't'
,
'>'
,
'\0'
};
static
const
CHAR
szTestXML
[]
=
"<?xml version=
\"
1.0
\"
?>
\n
"
"<BankAccount>
\n
"
" <Number>1234</Number>
\n
"
...
...
@@ -86,6 +94,26 @@ static content_handler_test contentHandlerTest1[] = {
{
CH_ENDTEST
}
};
static
content_handler_test
contentHandlerTest2
[]
=
{
{
CH_PUTDOCUMENTLOCATOR
,
0
,
0
},
{
CH_STARTDOCUMENT
,
0
,
0
},
{
CH_STARTELEMENT
,
2
,
14
,
""
,
"BankAccount"
,
"BankAccount"
},
{
CH_CHARACTERS
,
2
,
14
,
"
\n
"
},
{
CH_CHARACTERS
,
2
,
16
,
"
\t
"
},
{
CH_STARTELEMENT
,
3
,
10
,
""
,
"Number"
,
"Number"
},
{
CH_CHARACTERS
,
3
,
10
,
"1234"
},
{
CH_ENDELEMENT
,
3
,
16
,
""
,
"Number"
,
"Number"
},
{
CH_CHARACTERS
,
3
,
23
,
"
\n
"
},
{
CH_CHARACTERS
,
3
,
25
,
"
\t
"
},
{
CH_STARTELEMENT
,
4
,
8
,
""
,
"Name"
,
"Name"
},
{
CH_CHARACTERS
,
4
,
8
,
"Captain Ahab"
},
{
CH_ENDELEMENT
,
4
,
22
,
""
,
"Name"
,
"Name"
},
{
CH_CHARACTERS
,
4
,
27
,
"
\n
"
},
{
CH_ENDELEMENT
,
5
,
3
,
""
,
"BankAccount"
,
"BankAccount"
},
{
CH_ENDDOCUMENT
,
0
,
0
},
{
CH_ENDTEST
}
};
static
content_handler_test
*
expectCall
;
static
ISAXLocator
*
locator
;
...
...
@@ -525,6 +553,14 @@ static void test_saxreader(void)
IStream_Release
(
iStream
);
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
SysAllocString
(
szCarriageRetTest
);
expectCall
=
contentHandlerTest2
;
hr
=
ISAXXMLReader_parse
(
reader
,
var
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
test_expect_call
(
CH_ENDTEST
);
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