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
2656f738
Commit
2656f738
authored
Mar 16, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/tests: A bit more tests for IPersist* interfaces.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c191c2a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
domdoc.c
dlls/msxml3/tests/domdoc.c
+26
-3
No files found.
dlls/msxml3/tests/domdoc.c
View file @
2656f738
...
...
@@ -1839,12 +1839,15 @@ if (0)
free_bstrs
();
}
static
void
test_persiststream
init
(
void
)
static
void
test_persiststream
(
void
)
{
IXMLDOMDocument
*
doc
;
IPersistStreamInit
*
streaminit
;
IPersistStream
*
stream
;
IXMLDOMDocument
*
doc
;
ULARGE_INTEGER
size
;
IPersist
*
persist
;
HRESULT
hr
;
CLSID
clsid
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
...
...
@@ -1857,6 +1860,26 @@ static void test_persiststreaminit(void)
hr
=
IPersistStreamInit_GetSizeMax
(
streaminit
,
&
size
);
ok
(
hr
==
E_NOTIMPL
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IXMLDOMDocument_QueryInterface
(
doc
,
&
IID_IPersistStream
,
(
void
**
)
&
stream
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
((
IUnknown
*
)
stream
==
(
IUnknown
*
)
streaminit
,
"got %p, %p
\n
"
,
stream
,
streaminit
);
hr
=
IPersistStream_QueryInterface
(
stream
,
&
IID_IPersist
,
(
void
**
)
&
persist
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IXMLDOMDocument_QueryInterface
(
doc
,
&
IID_IPersist
,
(
void
**
)
&
persist
);
ok
(
hr
==
E_NOINTERFACE
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IPersistStreamInit_GetClassID
(
streaminit
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
memset
(
&
clsid
,
0
,
sizeof
(
clsid
));
hr
=
IPersistStreamInit_GetClassID
(
streaminit
,
&
clsid
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
clsid
,
&
CLSID_DOMDocument2
),
"wrong clsid %s
\n
"
,
wine_dbgstr_guid
(
&
clsid
));
IPersistStream_Release
(
stream
);
IPersistStreamInit_Release
(
streaminit
);
IXMLDOMDocument_Release
(
doc
);
}
...
...
@@ -12189,7 +12212,7 @@ START_TEST(domdoc)
}
test_domdoc
();
test_persiststream
init
();
test_persiststream
();
test_domnode
();
test_refs
();
test_create
();
...
...
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