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
4e2d8b13
Commit
4e2d8b13
authored
Nov 04, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml6/tests: Add tests for get_xml.
parent
df719787
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
domdoc.c
dlls/msxml6/tests/domdoc.c
+10
-0
No files found.
dlls/msxml6/tests/domdoc.c
View file @
4e2d8b13
...
...
@@ -66,6 +66,7 @@ static void test_namespaces_as_attributes(void)
const
WCHAR
*
basenames
[
3
];
const
WCHAR
*
uris
[
3
];
const
WCHAR
*
texts
[
3
];
const
WCHAR
*
xmls
[
3
];
};
static
const
struct
test
tests
[]
=
{
...
...
@@ -76,6 +77,7 @@ static void test_namespaces_as_attributes(void)
{
L"b"
,
L"d"
,
L"ns"
},
/* baseName */
{
L"nshref"
,
NULL
,
L""
},
/* namespaceURI */
{
L"b attr"
,
L"d attr"
,
L"nshref"
},
/* text */
{
L"ns:b=
\"
b attr
\"
"
,
L"d=
\"
d attr
\"
"
,
L"xmlns:ns=
\"
nshref
\"
"
},
/* xml */
},
/* property only */
{
...
...
@@ -85,6 +87,7 @@ static void test_namespaces_as_attributes(void)
{
L"d"
},
/* baseName */
{
NULL
},
/* namespaceURI */
{
L"d attr"
},
/* text */
{
L"d=
\"
d attr
\"
"
},
/* xml */
},
/* namespace only */
{
...
...
@@ -94,6 +97,7 @@ static void test_namespaces_as_attributes(void)
{
L"ns"
},
/* baseName */
{
L""
},
/* namespaceURI */
{
L"nshref"
},
/* text */
{
L"xmlns:ns=
\"
nshref
\"
"
},
/* xml */
},
/* no properties or namespaces */
{
...
...
@@ -187,6 +191,12 @@ static void test_namespaces_as_attributes(void)
ok
(
!
lstrcmpW
(
str
,
test
->
texts
[
i
]),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
str
=
NULL
;
hr
=
IXMLDOMNode_get_xml
(
item
,
&
str
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get node xml, hr %#lx.
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
test
->
xmls
[
i
]),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IXMLDOMNode_Release
(
item
);
}
...
...
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