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
24d77c26
Commit
24d77c26
authored
Jun 29, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Improve namespace tests to highlight get nodeName issue.
parent
0ad6c2de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
domdoc.c
dlls/msxml3/tests/domdoc.c
+13
-6
No files found.
dlls/msxml3/tests/domdoc.c
View file @
24d77c26
...
...
@@ -6997,9 +6997,11 @@ static void test_Namespaces(void)
BSTR
str
;
static
const
CHAR
szNamespacesXML
[]
=
"<?xml version=
\"
1.0
\"
?>
\n
"
"<root xmlns:WEB='http://www.winehq.org'>
\n
"
"<WEB:Site version=
\"
1.0
\"
/>
\n
"
"</root>"
;
"<XMI xmi.version=
\"
1.1
\"
xmlns:Model=
\"
http://omg.org/mof.Model/1.3
\"
>"
" <XMI.content>"
" <Model:Package name=
\"
WinePackage
\"
/>"
" </XMI.content>"
"</XMI>"
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
if
(
!
doc
)
return
;
...
...
@@ -7008,7 +7010,7 @@ static void test_Namespaces(void)
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
bSucc
==
VARIANT_TRUE
,
"Expected VARIANT_TRUE got VARIANT_FALSE
\n
"
);
hr
=
IXMLDOMDocument_selectSingleNode
(
doc
,
_bstr_
(
"
roo
t"
),
&
pNode
);
hr
=
IXMLDOMDocument_selectSingleNode
(
doc
,
_bstr_
(
"
//XMI.conten
t"
),
&
pNode
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
...
...
@@ -7023,7 +7025,12 @@ static void test_Namespaces(void)
hr
=
IXMLDOMNode_get_prefix
(
pNode2
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"WEB"
)),
"incorrect prefix string
\n
"
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"Model"
)),
"incorrect prefix string
\n
"
);
SysFreeString
(
str
);
hr
=
IXMLDOMNode_get_nodeName
(
pNode2
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
todo_wine
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"Model:Package"
)),
"incorrect nodeName string
\n
"
);
SysFreeString
(
str
);
/* Test get_namespaceURI */
...
...
@@ -7033,7 +7040,7 @@ static void test_Namespaces(void)
hr
=
IXMLDOMNode_get_namespaceURI
(
pNode2
,
&
str
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"http://
www.winehq.org
"
)),
"incorrect namespaceURI string
\n
"
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"http://
omg.org/mof.Model/1.3
"
)),
"incorrect namespaceURI string
\n
"
);
SysFreeString
(
str
);
IXMLDOMNode_Release
(
pNode2
);
...
...
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