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
9f9ff552
Commit
9f9ff552
authored
Dec 14, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Some tests to show that DISPID_VALUE properties are handled specially.
parent
7d3046cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+54
-0
No files found.
dlls/msxml3/tests/domdoc.c
View file @
9f9ff552
...
...
@@ -9939,7 +9939,9 @@ static void test_dispex(void)
IXMLHTTPRequest
*
req
;
IXMLDOMElement
*
elem
;
IDispatchEx
*
dispex
;
DISPPARAMS
dispparams
;
IXMLDOMNode
*
node
;
VARIANT
arg
,
ret
;
VARIANT_BOOL
b
;
IUnknown
*
unk
;
HRESULT
hr
;
...
...
@@ -9996,6 +9998,58 @@ static void test_dispex(void)
ok
(
did
==
DISPID_DOM_COLLECTION_BASE
+
1
,
"got 0x%08x
\n
"
,
did
);
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_I2
(
&
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
));
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
));
}
IXMLDOMNodeList_Release
(
node_list
);
/* IXMLDOMParseError */
...
...
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