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
924a4e13
Commit
924a4e13
authored
Jun 23, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Basic refcount test for IMXNamespacePrefixes.
parent
acce94a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+24
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
924a4e13
...
...
@@ -10484,8 +10484,10 @@ static void test_domobj_dispex(IUnknown *obj)
static
void
test_mxnamespacemanager
(
void
)
{
static
const
char
xmluriA
[]
=
"http://www.w3.org/XML/1998/namespace"
;
IMXNamespacePrefixes
*
prefixes
;
IVBMXNamespaceManager
*
mgr2
;
IMXNamespaceManager
*
nsmgr
;
IUnknown
*
unk1
,
*
unk2
;
WCHAR
buffW
[
250
];
IDispatch
*
disp
;
IUnknown
*
unk
;
...
...
@@ -10503,6 +10505,28 @@ static void test_mxnamespacemanager(void)
hr
=
IMXNamespaceManager_QueryInterface
(
nsmgr
,
&
IID_IVBMXNamespaceManager
,
(
void
**
)
&
mgr2
);
EXPECT_HR
(
hr
,
S_OK
);
EXPECT_REF
(
nsmgr
,
2
);
EXPECT_REF
(
mgr2
,
2
);
prefixes
=
NULL
;
hr
=
IVBMXNamespaceManager_getDeclaredPrefixes
(
mgr2
,
&
prefixes
);
if
(
hr
==
S_OK
)
{
ok
(
prefixes
!=
NULL
,
"got %p
\n
"
,
prefixes
);
EXPECT_REF
(
nsmgr
,
2
);
EXPECT_REF
(
mgr2
,
2
);
EXPECT_REF
(
prefixes
,
1
);
IVBMXNamespaceManager_QueryInterface
(
mgr2
,
&
IID_IUnknown
,
(
void
**
)
&
unk1
);
IMXNamespacePrefixes_QueryInterface
(
prefixes
,
&
IID_IUnknown
,
(
void
**
)
&
unk2
);
EXPECT_REF
(
mgr2
,
3
);
EXPECT_REF
(
prefixes
,
2
);
IUnknown_Release
(
unk1
);
IUnknown_Release
(
unk2
);
IMXNamespacePrefixes_Release
(
prefixes
);
}
IVBMXNamespaceManager_Release
(
mgr2
);
hr
=
IMXNamespaceManager_declarePrefix
(
nsmgr
,
NULL
,
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