mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 02:08:29 +00:00
msxml3/tests: Add tests for get_xml.
This commit is contained in:
parent
320f92759b
commit
70fd689924
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue