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
70fd6899
Commit
70fd6899
authored
Nov 12, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add tests for get_xml.
parent
320f9275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+10
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
70fd6899
...
...
@@ -13675,6 +13675,7 @@ static void test_namespaces_as_attributes(void)
const
char
*
basenames
[
3
];
const
char
*
uris
[
3
];
const
char
*
texts
[
3
];
const
char
*
xmls
[
3
];
};
static
const
struct
test
tests
[]
=
{
{
...
...
@@ -13684,6 +13685,7 @@ static void test_namespaces_as_attributes(void)
{
"b"
,
"d"
,
"ns"
},
/* baseName */
{
"nshref"
,
NULL
,
""
},
/* namespaceURI */
{
"b attr"
,
"d attr"
,
"nshref"
},
/* text */
{
"ns:b=
\"
b attr
\"
"
,
"d=
\"
d attr
\"
"
,
"xmlns:ns=
\"
nshref
\"
"
},
/* xml */
},
/* property only */
{
...
...
@@ -13693,6 +13695,7 @@ static void test_namespaces_as_attributes(void)
{
"d"
},
/* baseName */
{
NULL
},
/* namespaceURI */
{
"d attr"
},
/* text */
{
"d=
\"
d attr
\"
"
},
/* xml */
},
/* namespace only */
{
...
...
@@ -13702,6 +13705,7 @@ static void test_namespaces_as_attributes(void)
{
"ns"
},
/* baseName */
{
""
},
/* namespaceURI */
{
"nshref"
},
/* text */
{
"xmlns:ns=
\"
nshref
\"
"
},
/* xml */
},
/* no properties or namespaces */
{
...
...
@@ -13801,6 +13805,12 @@ static void test_namespaces_as_attributes(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
test
->
texts
[
i
])),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
str
=
NULL
;
hr
=
IXMLDOMNode_get_xml
(
item
,
&
str
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
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