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
461951e3
Commit
461951e3
authored
Mar 05, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add xmlns attribute test.
parent
e920d1a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+56
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
461951e3
...
...
@@ -10754,6 +10754,61 @@ static void test_nodeValue(void)
IXMLDOMDocument_Release
(
doc
);
}
void
test_xmlns_attribute
(
void
)
{
BSTR
str
;
IXMLDOMDocument
*
doc
;
IXMLDOMElement
*
root
;
IXMLDOMAttribute
*
pAttribute
;
IXMLDOMElement
*
elem
;
HRESULT
hr
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
if
(
!
doc
)
return
;
hr
=
IXMLDOMDocument_createElement
(
doc
,
_bstr_
(
"Testing"
),
&
root
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMDocument_appendChild
(
doc
,
(
IXMLDOMNode
*
)
root
,
NULL
);
EXPECT_HR
(
hr
,
S_OK
);
str
=
SysAllocString
(
szAttribute
);
hr
=
IXMLDOMDocument_createAttribute
(
doc
,
_bstr_
(
"xmlns:dt"
),
&
pAttribute
);
ok
(
hr
==
S_OK
,
"returns %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
VARIANT
v
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
_bstr_
(
"urn:schemas-microsoft-com:datatypes"
);
hr
=
IXMLDOMAttribute_put_nodeValue
(
pAttribute
,
v
);
hr
=
IXMLDOMElement_setAttributeNode
(
root
,
pAttribute
,
NULL
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IXMLDOMNode_put_dataType
((
IXMLDOMNode
*
)
root
,
_bstr_
(
"bin.base64"
));
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IXMLDOMDocument_get_documentElement
(
doc
,
&
elem
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMElement_get_xml
(
elem
,
&
str
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
lstrcmpW
(
str
,
_bstr_
(
"<Testing xmlns:dt=
\"
urn:schemas-microsoft-com:datatypes
\"
dt:dt=
\"
bin.base64
\"
/>"
))
==
0
,
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IXMLDOMElement_Release
(
elem
);
IXMLDOMAttribute_Release
(
pAttribute
);
}
SysFreeString
(
str
);
IXMLDOMDocument_Release
(
doc
);
free_bstrs
();
}
static
const
char
namespacesA
[]
=
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
standalone=
\"
yes
\"
?>"
" <ns1:elem1 xmlns:ns1=
\"
http://blah.org
\"
b='1' >"
...
...
@@ -11461,6 +11516,7 @@ START_TEST(domdoc)
test_put_data
();
test_putref_schemas
();
test_namedmap_newenum
();
test_xmlns_attribute
();
test_xsltemplate
();
test_xsltext
();
...
...
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