Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6ca60b59
Commit
6ca60b59
authored
Jul 30, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Enable inline wrappers for tests.
parent
48ff6fa9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
37 deletions
+38
-37
Makefile.in
dlls/msxml3/tests/Makefile.in
+1
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+35
-35
xmldoc.c
dlls/msxml3/tests/xmldoc.c
+2
-2
No files found.
dlls/msxml3/tests/Makefile.in
View file @
6ca60b59
TESTDLL
=
msxml3.dll
IMPORTS
=
oleaut32 ole32 user32
EXTRADEFS
=
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
domdoc.c
\
...
...
dlls/msxml3/tests/domdoc.c
View file @
6ca60b59
...
...
@@ -2793,7 +2793,7 @@ if (0)
ok
(
r
==
E_INVALIDARG
,
"returns %08x
\n
"
,
r
);
r
=
IXMLDOMDocument_createAttribute
(
doc
,
str
,
&
node_attr
);
ok
(
r
==
S_OK
,
"returns %08x
\n
"
,
r
);
IXMLDOM
Text
_Release
(
node_attr
);
IXMLDOM
Attribute
_Release
(
node_attr
);
SysFreeString
(
str
);
/* test Processing Instruction */
...
...
@@ -2920,10 +2920,10 @@ static void test_domnode( void )
VariantInit
(
&
var
);
ok
(
V_VT
(
&
var
)
==
VT_EMPTY
,
"variant init failed
\n
"
);
r
=
IXMLDOM
Node
_get_nodeValue
(
doc
,
NULL
);
r
=
IXMLDOM
Document
_get_nodeValue
(
doc
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"get_nodeValue ret %08x
\n
"
,
r
);
r
=
IXMLDOM
Node
_get_nodeValue
(
doc
,
&
var
);
r
=
IXMLDOM
Document
_get_nodeValue
(
doc
,
&
var
);
ok
(
r
==
S_FALSE
,
"nextNode returned wrong code
\n
"
);
ok
(
V_VT
(
&
var
)
==
VT_NULL
,
"variant wasn't empty
\n
"
);
ok
(
V_BSTR
(
&
var
)
==
NULL
,
"variant value wasn't null
\n
"
);
...
...
@@ -2931,18 +2931,18 @@ static void test_domnode( void )
if
(
element
)
{
owner
=
NULL
;
r
=
IXMLDOM
Node
_get_ownerDocument
(
element
,
&
owner
);
r
=
IXMLDOM
Element
_get_ownerDocument
(
element
,
&
owner
);
ok
(
r
==
S_OK
,
"get_ownerDocument return code
\n
"
);
ok
(
owner
!=
doc
,
"get_ownerDocument return
\n
"
);
IXMLDOMDocument_Release
(
owner
);
type
=
NODE_INVALID
;
r
=
IXMLDOM
Node
_get_nodeType
(
element
,
&
type
);
r
=
IXMLDOM
Element
_get_nodeType
(
element
,
&
type
);
ok
(
r
==
S_OK
,
"got %08x
\n
"
,
r
);
ok
(
type
==
NODE_ELEMENT
,
"node not an element
\n
"
);
str
=
NULL
;
r
=
IXMLDOM
Node
_get_baseName
(
element
,
&
str
);
r
=
IXMLDOM
Element
_get_baseName
(
element
,
&
str
);
ok
(
r
==
S_OK
,
"get_baseName returned wrong code
\n
"
);
ok
(
lstrcmpW
(
str
,
szlc
)
==
0
,
"basename was wrong
\n
"
);
SysFreeString
(
str
);
...
...
@@ -3157,7 +3157,7 @@ static void test_domnode( void )
/* now traverse the tree from the root element */
if
(
element
)
{
r
=
IXMLDOM
Node
_get_childNodes
(
element
,
&
list
);
r
=
IXMLDOM
Element
_get_childNodes
(
element
,
&
list
);
ok
(
r
==
S_OK
,
"get_childNodes returned wrong code
\n
"
);
/* using get_item for child list doesn't advance the position */
...
...
@@ -3175,13 +3175,13 @@ static void test_domnode( void )
node
=
(
void
*
)
0xdeadbeef
;
str
=
SysAllocString
(
szdl
);
r
=
IXMLDOM
Node
_selectSingleNode
(
element
,
str
,
&
node
);
r
=
IXMLDOM
Element
_selectSingleNode
(
element
,
str
,
&
node
);
SysFreeString
(
str
);
ok
(
r
==
S_FALSE
,
"ret %08x
\n
"
,
r
);
ok
(
node
==
NULL
,
"node %p
\n
"
,
node
);
str
=
SysAllocString
(
szbs
);
r
=
IXMLDOM
Node
_selectSingleNode
(
element
,
str
,
&
node
);
r
=
IXMLDOM
Element
_selectSingleNode
(
element
,
str
,
&
node
);
SysFreeString
(
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMNode_Release
(
node
);
...
...
@@ -3380,8 +3380,8 @@ todo_wine {
EXPECT_REF
(
unk
,
4
);
todo_wine
EXPECT_REF
(
dispex2
,
1
);
IDispatch_Release
(
dispex
);
IDispatch_Release
(
dispex2
);
IDispatch
Ex
_Release
(
dispex
);
IDispatch
Ex
_Release
(
dispex2
);
/* try corresponding IXMLDOM* */
EXPECT_REF
(
unk
,
2
);
...
...
@@ -4560,7 +4560,7 @@ static void test_removeChild(void)
r
=
IXMLDOMNodeList_get_item
(
root_list
,
0
,
&
lc_node
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOM
Element
_QueryInterface
(
lc_node
,
&
IID_IXMLDOMElement
,
(
void
**
)
&
lc_element
);
r
=
IXMLDOM
Node
_QueryInterface
(
lc_node
,
&
IID_IXMLDOMElement
,
(
void
**
)
&
lc_element
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
/* MS quirk: passing wrong interface pointer works, too */
...
...
@@ -5333,11 +5333,11 @@ static void test_IXMLDOMDocument2(void)
IXMLDOMParseError_Release
(
err
);
}
r
=
IXMLDOMDocument_loadXML
(
doc2
,
_bstr_
(
complete4A
),
&
b
);
r
=
IXMLDOMDocument
2
_loadXML
(
doc2
,
_bstr_
(
complete4A
),
&
b
);
ok
(
r
==
S_OK
,
"loadXML failed
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
ole_check
(
IXMLDOMDocument
2
_get_readyState
(
doc
,
&
res
));
ole_check
(
IXMLDOMDocument_get_readyState
(
doc
,
&
res
));
ok
(
res
==
READYSTATE_COMPLETE
,
"expected READYSTATE_COMPLETE (4), got %i
\n
"
,
res
);
err
=
NULL
;
...
...
@@ -5719,10 +5719,10 @@ static void test_whitespace(void)
check_ws_preserved
(
doc3
,
NULL
);
check_ws_ignored
(
doc4
,
NULL
);
IXMLDOMDocument_Release
(
doc1
);
IXMLDOMDocument_Release
(
doc2
);
IXMLDOMDocument_Release
(
doc3
);
IXMLDOMDocument_Release
(
doc4
);
IXMLDOMDocument
2
_Release
(
doc1
);
IXMLDOMDocument
2
_Release
(
doc2
);
IXMLDOMDocument
2
_Release
(
doc3
);
IXMLDOMDocument
2
_Release
(
doc4
);
free_bstrs
();
}
...
...
@@ -5869,11 +5869,11 @@ if (0)
/* no results */
ole_check
(
IXMLDOMNode_selectNodes
(
rootNode
,
_bstr_
(
"c"
),
&
list
));
expect_list_and_release
(
list
,
""
);
ole_check
(
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"elem//c"
),
&
list
));
ole_check
(
IXMLDOMDocument
2
_selectNodes
(
doc
,
_bstr_
(
"elem//c"
),
&
list
));
expect_list_and_release
(
list
,
""
);
ole_check
(
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"//elem[4]"
),
&
list
));
ole_check
(
IXMLDOMDocument
2
_selectNodes
(
doc
,
_bstr_
(
"//elem[4]"
),
&
list
));
expect_list_and_release
(
list
,
""
);
ole_check
(
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root//elem[0]"
),
&
list
));
ole_check
(
IXMLDOMDocument
2
_selectNodes
(
doc
,
_bstr_
(
"root//elem[0]"
),
&
list
));
expect_list_and_release
(
list
,
""
);
/* foo undeclared in document node */
...
...
@@ -5915,7 +5915,7 @@ if (0)
/* extra attributes - same thing*/
ole_expect
(
IXMLDOMDocument2_setProperty
(
doc
,
_bstr_
(
"SelectionNamespaces"
),
_variantbstr_
(
"xmlns:test='urn:uuid:86B2F87F-ACB6-45cd-8B77-9BDB92A01A29' param='test'"
)),
E_FAIL
);
ole_expect
(
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root//foo:c"
),
&
list
),
E_FAIL
);
ole_expect
(
IXMLDOMDocument
2
_selectNodes
(
doc
,
_bstr_
(
"root//foo:c"
),
&
list
),
E_FAIL
);
IXMLDOMNode_Release
(
rootNode
);
IXMLDOMNode_Release
(
elem1Node
);
...
...
@@ -5985,7 +5985,7 @@ if (0)
IXMLDOMNode_Release
(
rootNode
);
/* and now check for attribute in original document */
hr
=
IXMLDOMDocument_get_documentElement
(
doc
,
&
elem
);
hr
=
IXMLDOMDocument
2
_get_documentElement
(
doc
,
&
elem
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMElement_getAttributeNode
(
elem
,
_bstr_
(
"attrtest"
),
&
attr
);
...
...
@@ -6084,7 +6084,7 @@ static void test_cloneNode(void )
ole_check
(
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
complete4A
),
&
b
));
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
hr
=
IXMLDOM
Node
_selectSingleNode
(
doc
,
_bstr_
(
"lc/pr"
),
&
node
);
hr
=
IXMLDOM
Document
_selectSingleNode
(
doc
,
_bstr_
(
"lc/pr"
),
&
node
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
node
!=
NULL
,
"node %p
\n
"
,
node
);
...
...
@@ -7920,7 +7920,7 @@ static void test_TransformWithLoadingLocalFile(void)
xsl
=
create_document
(
&
IID_IXMLDOMDocument
);
if
(
!
xsl
)
{
IXMLDOMDocument
2
_Release
(
doc
);
IXMLDOMDocument_Release
(
doc
);
return
;
}
...
...
@@ -8782,7 +8782,7 @@ static void test_get_ownerDocument(void)
VariantInit
(
&
var
);
ole_check
(
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
complete4A
),
&
b
));
ole_check
(
IXMLDOMDocument
2
_loadXML
(
doc
,
_bstr_
(
complete4A
),
&
b
));
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
check_default_props
(
doc
);
...
...
@@ -8848,7 +8848,7 @@ static void test_setAttributeNode(void)
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
if
(
!
doc
)
return
;
hr
=
IXMLDOMDocument
2
_loadXML
(
doc
,
_bstr_
(
complete4A
),
&
b
);
hr
=
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
complete4A
),
&
b
);
ok
(
hr
==
S_OK
,
"loadXML failed
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
...
...
@@ -10144,8 +10144,8 @@ static void test_get_tagName(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"s:element"
)),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IXMLDOM
Docu
ment_Release
(
elem
);
IXMLDOM
Docu
ment_Release
(
elem2
);
IXMLDOM
Ele
ment_Release
(
elem
);
IXMLDOM
Ele
ment_Release
(
elem2
);
IXMLDOMDocument_Release
(
doc
);
free_bstrs
();
}
...
...
@@ -10504,7 +10504,7 @@ static void test_selection(void)
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
hr
=
IXMLDOMDocument
2
_loadXML
(
doc
,
_bstr_
(
szExampleXML
),
&
b
);
hr
=
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
szExampleXML
),
&
b
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root"
),
&
list
);
...
...
@@ -10647,7 +10647,7 @@ static void test_selection(void)
IXMLDOMNodeList_Release
(
list
);
/* test if IEnumVARIANT touches selection context */
hr
=
IXMLDOMDocument
2
_loadXML
(
doc
,
_bstr_
(
xpath_simple_list
),
&
b
);
hr
=
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
xpath_simple_list
),
&
b
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root/*"
),
&
list
);
...
...
@@ -11490,7 +11490,7 @@ static void test_dispex(void)
IXMLDOMParseError_Release
(
error
);
/* IXMLDOMNamedNodeMap */
hr
=
IXMLDOMDocument
2
_loadXML
(
doc
,
_bstr_
(
xpath_simple_list
),
&
b
);
hr
=
IXMLDOMDocument_loadXML
(
doc
,
_bstr_
(
xpath_simple_list
),
&
b
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMDocument_selectNodes
(
doc
,
_bstr_
(
"root/a"
),
&
node_list
);
...
...
@@ -11956,7 +11956,7 @@ static void test_get_namespaces(void)
EXPECT_HR
(
hr
,
S_OK
);
if
(
hr
!=
S_OK
)
{
IXMLDOMDocument_Release
(
doc
);
IXMLDOMDocument
2
_Release
(
doc
);
return
;
}
EXPECT_REF
(
collection
,
2
);
...
...
@@ -12079,7 +12079,7 @@ static void test_get_namespaces(void)
EXPECT_HR
(
hr
,
S_OK
);
if
(
hr
!=
S_OK
)
{
IXMLDOMDocument_Release
(
doc
);
IXMLDOMDocument
2
_Release
(
doc
);
return
;
}
EXPECT_REF
(
collection
,
2
);
...
...
@@ -12124,7 +12124,7 @@ static void test_get_namespaces(void)
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
doc2
;
hr
=
IXMLDOMSchemaCollection_add
(
collection
,
_bstr_
(
xsd_schema1_uri
),
v
);
EXPECT_HR
(
hr
,
E_FAIL
);
IXMLDOM
SchemaCollection
_Release
(
doc2
);
IXMLDOM
Document2
_Release
(
doc2
);
hr
=
IXMLDOMSchemaCollection_get_namespaceURI
(
collection
,
0
,
&
s
);
EXPECT_HR
(
hr
,
S_OK
);
...
...
dlls/msxml3/tests/xmldoc.c
View file @
6ca60b59
...
...
@@ -738,7 +738,7 @@ static void test_xmlelem_collection(void)
ok
(
V_VT
(
&
var
)
==
VT_DISPATCH
,
"Expected VT_DISPATCH, got %d
\n
"
,
V_VT
(
&
var
));
ok
(
num_vars
==
1
,
"Expected 1, got %d
\n
"
,
num_vars
);
hr
=
I
Unknown
_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IXMLElement
,
(
LPVOID
*
)
&
child
);
hr
=
I
Dispatch
_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IXMLElement
,
(
LPVOID
*
)
&
child
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
child
!=
NULL
,
"Expected non-NULL child
\n
"
);
...
...
@@ -770,7 +770,7 @@ static void test_xmlelem_collection(void)
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
hr
);
ok
(
V_VT
(
&
var
)
==
0
,
"Expected 0, got %d
\n
"
,
V_VT
(
&
var
));
hr
=
I
Unknown
_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IXMLElement
,
(
LPVOID
*
)
&
child
);
hr
=
I
Dispatch
_QueryInterface
(
V_DISPATCH
(
&
var
),
&
IID_IXMLElement
,
(
LPVOID
*
)
&
child
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
child
!=
NULL
,
"Expected non-NULL child
\n
"
);
...
...
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