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
6a7c5313
Commit
6a7c5313
authored
Nov 15, 2023
by
Daniel Lehman
Committed by
Alexandre Julliard
Nov 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml6/tests: Add tests for default namespace.
parent
8ffebcf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
domdoc.c
dlls/msxml6/tests/domdoc.c
+15
-1
No files found.
dlls/msxml6/tests/domdoc.c
View file @
6a7c5313
...
...
@@ -67,6 +67,7 @@ static void test_namespaces_as_attributes(void)
const
WCHAR
*
uris
[
3
];
const
WCHAR
*
texts
[
3
];
const
WCHAR
*
xmls
[
3
];
BOOL
todo
;
};
static
const
struct
test
tests
[]
=
{
...
...
@@ -99,6 +100,17 @@ static void test_namespaces_as_attributes(void)
{
L"nshref"
},
/* text */
{
L"xmlns:ns=
\"
nshref
\"
"
},
/* xml */
},
/* default namespace */
{
L"<a xmlns=
\"
nshref
\"
/>"
,
1
,
{
L"xmlns"
},
/* nodeName */
{
NULL
},
/* prefix */
{
L"xmlns"
},
/* baseName */
{
L"http://www.w3.org/2000/xmlns/"
},
/* namespaceURI */
{
L"nshref"
},
/* text */
{
L"xmlns=
\"
nshref
\"
"
},
/* xml */
TRUE
,
/* todo */
},
/* no properties or namespaces */
{
L"<a />"
,
0
,
...
...
@@ -125,7 +137,7 @@ static void test_namespaces_as_attributes(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
node
=
NULL
;
hr
=
IXMLDOMDocument2_
selectSingleNode
(
doc
,
_bstr_
(
L"a"
)
,
&
node
);
hr
=
IXMLDOMDocument2_
get_firstChild
(
doc
,
&
node
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IXMLDOMNode_get_attributes
(
node
,
&
map
);
...
...
@@ -145,7 +157,9 @@ static void test_namespaces_as_attributes(void)
{
item
=
NULL
;
hr
=
IXMLDOMNamedNodeMap_get_item
(
map
,
i
,
&
item
);
todo_wine_if
(
test
->
todo
)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
continue
;
str
=
NULL
;
hr
=
IXMLDOMNode_get_nodeName
(
item
,
&
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