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
b9d07c5a
Commit
b9d07c5a
authored
Feb 09, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add a trivial test for IXMLDOMDocumentFragment_get_parentNode().
parent
f65fd26f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
domdoc.c
dlls/msxml3/tests/domdoc.c
+15
-7
No files found.
dlls/msxml3/tests/domdoc.c
View file @
b9d07c5a
...
...
@@ -3510,7 +3510,15 @@ static void test_xmlTypes(void)
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IXMLDOMNode
*
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
IXMLDOMNode
*
node
;
hr
=
IXMLDOMDocumentFragment_get_parentNode
(
pDocFrag
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
node
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocumentFragment_get_parentNode
(
pDocFrag
,
&
node
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
node
==
NULL
,
"expected NULL, got %p
\n
"
,
node
);
hr
=
IXMLDOMElement_appendChild
(
pRoot
,
(
IXMLDOMNode
*
)
pDocFrag
,
NULL
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
...
...
@@ -3533,19 +3541,19 @@ static void test_xmlTypes(void)
hr
=
IXMLDOMDocumentFragment_get_nextSibling
(
pDocFrag
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocumentFragment_get_nextSibling
(
pDocFrag
,
&
pNextChild
);
node
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocumentFragment_get_nextSibling
(
pDocFrag
,
&
node
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pNextChild
not NULL
\n
"
);
ok
(
node
==
NULL
,
"next sibling
not NULL
\n
"
);
/* test Previous Sibling*/
hr
=
IXMLDOMDocumentFragment_get_previousSibling
(
pDocFrag
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"ret %08x
\n
"
,
hr
);
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocumentFragment_get_previousSibling
(
pDocFrag
,
&
pNextChild
);
node
=
(
IXMLDOMNode
*
)
0x1
;
hr
=
IXMLDOMDocumentFragment_get_previousSibling
(
pDocFrag
,
&
node
);
ok
(
hr
==
S_FALSE
,
"ret %08x
\n
"
,
hr
);
ok
(
pNextChild
==
NULL
,
"pNextChild
not NULL
\n
"
);
ok
(
node
==
NULL
,
"previous sibling
not NULL
\n
"
);
/* test get_dataType */
hr
=
IXMLDOMDocumentFragment_get_dataType
(
pDocFrag
,
NULL
);
...
...
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