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
83e87a32
Commit
83e87a32
authored
Dec 20, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: More tests for DISPID_VALUE properties handling.
parent
f2042736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
157 additions
and
3 deletions
+157
-3
domdoc.c
dlls/msxml3/tests/domdoc.c
+135
-3
schema.c
dlls/msxml3/tests/schema.c
+22
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
83e87a32
...
@@ -9475,6 +9475,10 @@ static void test_mxnamespacemanager(void)
...
@@ -9475,6 +9475,10 @@ static void test_mxnamespacemanager(void)
hr
=
IVBMXNamespaceManager_getDeclaredPrefixes
(
mgr2
,
&
prefixes
);
hr
=
IVBMXNamespaceManager_getDeclaredPrefixes
(
mgr2
,
&
prefixes
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
{
{
IDispatchEx
*
dispex
;
VARIANT
arg
,
ret
;
DISPPARAMS
dispparams
;
ok
(
prefixes
!=
NULL
,
"got %p
\n
"
,
prefixes
);
ok
(
prefixes
!=
NULL
,
"got %p
\n
"
,
prefixes
);
EXPECT_REF
(
nsmgr
,
2
);
EXPECT_REF
(
nsmgr
,
2
);
EXPECT_REF
(
mgr2
,
2
);
EXPECT_REF
(
mgr2
,
2
);
...
@@ -9488,6 +9492,25 @@ static void test_mxnamespacemanager(void)
...
@@ -9488,6 +9492,25 @@ static void test_mxnamespacemanager(void)
IUnknown_Release
(
unk1
);
IUnknown_Release
(
unk1
);
IUnknown_Release
(
unk2
);
IUnknown_Release
(
unk2
);
hr
=
IMXNamespacePrefixes_QueryInterface
(
prefixes
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
1
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_DISPATCH
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
NULL
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
IDispatchEx_Release
(
dispex
);
IMXNamespacePrefixes_Release
(
prefixes
);
IMXNamespacePrefixes_Release
(
prefixes
);
}
}
IVBMXNamespaceManager_Release
(
mgr2
);
IVBMXNamespaceManager_Release
(
mgr2
);
...
@@ -10004,7 +10027,7 @@ static void test_dispex(void)
...
@@ -10004,7 +10027,7 @@ static void test_dispex(void)
ok
(
did
==
DISPID_VALUE
,
"got %d
\n
"
,
did
);
ok
(
did
==
DISPID_VALUE
,
"got %d
\n
"
,
did
);
V_VT
(
&
arg
)
=
VT_I4
;
V_VT
(
&
arg
)
=
VT_I4
;
V_I
2
(
&
arg
)
=
0
;
V_I
4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
...
@@ -10018,7 +10041,7 @@ static void test_dispex(void)
...
@@ -10018,7 +10041,7 @@ static void test_dispex(void)
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
V_VT
(
&
arg
)
=
VT_I4
;
V_VT
(
&
arg
)
=
VT_I4
;
V_I
2
(
&
arg
)
=
0
;
V_I
4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
2
;
dispparams
.
cArgs
=
2
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
...
@@ -10032,7 +10055,7 @@ static void test_dispex(void)
...
@@ -10032,7 +10055,7 @@ static void test_dispex(void)
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
V_VT
(
&
arg
)
=
VT_I4
;
V_VT
(
&
arg
)
=
VT_I4
;
V_I
2
(
&
arg
)
=
0
;
V_I
4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
1
;
dispparams
.
cArgs
=
1
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
...
@@ -10090,6 +10113,26 @@ static void test_dispex(void)
...
@@ -10090,6 +10113,26 @@ static void test_dispex(void)
EXPECT_HR
(
hr
,
S_OK
);
EXPECT_HR
(
hr
,
S_OK
);
IXMLDOMParseError_QueryInterface
(
error
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
IXMLDOMParseError_QueryInterface
(
error
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
test_domobj_dispex
(
unk
);
test_domobj_dispex
(
unk
);
hr
=
IXMLDOMParseError_QueryInterface
(
error
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
1
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
DISP_E_MEMBERNOTFOUND
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_EMPTY
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
IDispatchEx_Release
(
dispex
);
IUnknown_Release
(
unk
);
IUnknown_Release
(
unk
);
IXMLDOMParseError_Release
(
error
);
IXMLDOMParseError_Release
(
error
);
...
@@ -10142,6 +10185,95 @@ static void test_dispex(void)
...
@@ -10142,6 +10185,95 @@ static void test_dispex(void)
ok
(
did
==
DISPID_DOM_COLLECTION_BASE
+
1
,
"got 0x%08x
\n
"
,
did
);
ok
(
did
==
DISPID_DOM_COLLECTION_BASE
+
1
,
"got 0x%08x
\n
"
,
did
);
IDispatchEx_Release
(
dispex
);
IDispatchEx_Release
(
dispex
);
did
=
-
1
;
hr
=
IDispatchEx_GetDispID
(
dispex
,
_bstr_
(
"item"
),
0
,
&
did
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
did
==
DISPID_VALUE
,
"got %d
\n
"
,
did
);
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
todo_wine
{
ok
(
hr
==
DISP_E_BADPARAMCOUNT
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_EMPTY
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
}
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
2
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
todo_wine
{
ok
(
hr
==
DISP_E_BADPARAMCOUNT
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_EMPTY
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
}
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
1
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_DISPATCH
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
NULL
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_DISPATCH
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
NULL
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_DISPATCH
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
NULL
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
NULL
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_I4
(
&
ret
)
=
1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_DOM_NODELIST_LENGTH
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_I4
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_I4
(
&
ret
)
==
0
,
"got %d
\n
"
,
V_I4
(
&
ret
));
dispparams
.
cArgs
=
0
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
NULL
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_I4
(
&
ret
)
=
1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_DOM_NODELIST_LENGTH
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
DISP_E_MEMBERNOTFOUND
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
{
ok
(
V_VT
(
&
ret
)
==
VT_EMPTY
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_I4
(
&
ret
)
==
1
,
"got %d
\n
"
,
V_I4
(
&
ret
));
}
IXMLDOMNamedNodeMap_Release
(
map
);
IXMLDOMNamedNodeMap_Release
(
map
);
IXMLDOMElement_Release
(
elem
);
IXMLDOMElement_Release
(
elem
);
...
...
dlls/msxml3/tests/schema.c
View file @
83e87a32
...
@@ -1463,8 +1463,11 @@ static void test_obj_dispex(IUnknown *obj)
...
@@ -1463,8 +1463,11 @@ static void test_obj_dispex(IUnknown *obj)
static
void
test_dispex
(
void
)
static
void
test_dispex
(
void
)
{
{
IXMLDOMSchemaCollection
*
cache
;
IXMLDOMSchemaCollection
*
cache
;
IDispatchEx
*
dispex
;
IUnknown
*
unk
;
IUnknown
*
unk
;
HRESULT
hr
;
HRESULT
hr
;
DISPPARAMS
dispparams
;
VARIANT
arg
,
ret
;
cache
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
cache
=
create_cache
(
&
IID_IXMLDOMSchemaCollection
);
if
(
!
cache
)
return
;
if
(
!
cache
)
return
;
...
@@ -1474,6 +1477,25 @@ static void test_dispex(void)
...
@@ -1474,6 +1477,25 @@ static void test_dispex(void)
test_obj_dispex
(
unk
);
test_obj_dispex
(
unk
);
IUnknown_Release
(
unk
);
IUnknown_Release
(
unk
);
hr
=
IXMLDOMSchemaCollection_QueryInterface
(
cache
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
V_VT
(
&
arg
)
=
VT_I4
;
V_I4
(
&
arg
)
=
0
;
dispparams
.
cArgs
=
1
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
&
arg
;
V_VT
(
&
ret
)
=
VT_EMPTY
;
V_DISPATCH
(
&
ret
)
=
(
void
*
)
0x1
;
hr
=
IDispatchEx_Invoke
(
dispex
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_METHOD
,
&
dispparams
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
DISP_E_MEMBERNOTFOUND
,
"got 0x%08x
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_EMPTY
,
"got %d
\n
"
,
V_VT
(
&
ret
));
ok
(
V_DISPATCH
(
&
ret
)
==
(
void
*
)
0x1
,
"got %p
\n
"
,
V_DISPATCH
(
&
ret
));
IDispatchEx_Release
(
dispex
);
IXMLDOMSchemaCollection_Release
(
cache
);
IXMLDOMSchemaCollection_Release
(
cache
);
}
}
...
...
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