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
33042ed1
Commit
33042ed1
authored
Sep 09, 2010
by
Joris Huizer
Committed by
Alexandre Julliard
Sep 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: Add lastChild tests.
parent
ed7f017d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+43
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
33042ed1
...
...
@@ -2558,6 +2558,48 @@ static void test_get_firstChild(void)
IXMLDOMDocument_Release
(
doc
);
}
static
void
test_get_lastChild
(
void
)
{
static
WCHAR
lcW
[]
=
{
'l'
,
'c'
,
0
};
static
WCHAR
foW
[]
=
{
'f'
,
'o'
,
0
};
IXMLDOMDocument
*
doc
;
IXMLDOMNode
*
node
,
*
child
;
VARIANT_BOOL
b
;
HRESULT
r
;
BSTR
str
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
if
(
!
doc
)
return
;
str
=
SysAllocString
(
szComplete4
);
r
=
IXMLDOMDocument_loadXML
(
doc
,
str
,
&
b
);
ok
(
r
==
S_OK
,
"loadXML failed
\n
"
);
ok
(
b
==
VARIANT_TRUE
,
"failed to load XML string
\n
"
);
SysFreeString
(
str
);
r
=
IXMLDOMDocument_get_lastChild
(
doc
,
&
node
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMNode_get_nodeName
(
node
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
memcmp
(
str
,
lcW
,
sizeof
(
lcW
))
==
0
,
"expected
\"
lc
\"
node name
\n
"
);
SysFreeString
(
str
);
r
=
IXMLDOMNode_get_lastChild
(
node
,
&
child
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMNode_get_nodeName
(
child
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
memcmp
(
str
,
foW
,
sizeof
(
foW
))
==
0
,
"expected
\"
fo
\"
node name
\n
"
);
SysFreeString
(
str
);
IXMLDOMNode_Release
(
child
);
IXMLDOMNode_Release
(
node
);
IXMLDOMDocument_Release
(
doc
);
}
static
void
test_removeChild
(
void
)
{
HRESULT
r
;
...
...
@@ -6013,6 +6055,7 @@ START_TEST(domdoc)
test_get_text
();
test_get_childNodes
();
test_get_firstChild
();
test_get_lastChild
();
test_removeChild
();
test_replaceChild
();
test_removeNamedItem
();
...
...
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