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
dfc74ac0
Commit
dfc74ac0
authored
Sep 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added obj member call test.
parent
a6ee830f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
run.c
dlls/vbscript/tests/run.c
+30
-0
No files found.
dlls/vbscript/tests/run.c
View file @
dfc74ac0
...
...
@@ -60,6 +60,8 @@ DEFINE_EXPECT(global_success_d);
DEFINE_EXPECT
(
global_success_i
);
DEFINE_EXPECT
(
global_vbvar_d
);
DEFINE_EXPECT
(
global_vbvar_i
);
DEFINE_EXPECT
(
testobj_propget_d
);
DEFINE_EXPECT
(
testobj_propget_i
);
DEFINE_EXPECT
(
testobj_propput_d
);
DEFINE_EXPECT
(
testobj_propput_i
);
...
...
@@ -72,6 +74,7 @@ DEFINE_EXPECT(testobj_propput_i);
#define DISPID_GLOBAL_TESTOBJ 1006
#define DISPID_GLOBAL_ISNULLDISP 1007
#define DISPID_TESTOBJ_PROPGET 2000
#define DISPID_TESTOBJ_PROPPUT 2001
static
const
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
...
...
@@ -234,6 +237,12 @@ static HRESULT WINAPI DispatchEx_GetNameSpaceParent(IDispatchEx *iface, IUnknown
static
HRESULT
WINAPI
testObj_GetDispID
(
IDispatchEx
*
iface
,
BSTR
bstrName
,
DWORD
grfdex
,
DISPID
*
pid
)
{
if
(
!
strcmp_wa
(
bstrName
,
"propget"
))
{
CHECK_EXPECT
(
testobj_propget_d
);
test_grfdex
(
grfdex
,
fdexNameCaseInsensitive
);
*
pid
=
DISPID_TESTOBJ_PROPGET
;
return
S_OK
;
}
if
(
!
strcmp_wa
(
bstrName
,
"propput"
))
{
CHECK_EXPECT
(
testobj_propput_d
);
test_grfdex
(
grfdex
,
fdexNameCaseInsensitive
);
...
...
@@ -249,6 +258,21 @@ static HRESULT WINAPI testObj_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
switch
(
id
)
{
case
DISPID_TESTOBJ_PROPGET
:
CHECK_EXPECT
(
testobj_propget_i
);
ok
(
wFlags
==
(
DISPATCH_PROPERTYGET
|
DISPATCH_METHOD
),
"wFlags = %x
\n
"
,
wFlags
);
ok
(
pdp
!=
NULL
,
"pdp == NULL
\n
"
);
ok
(
!
pdp
->
rgvarg
,
"rgvarg == NULL
\n
"
);
ok
(
!
pdp
->
rgdispidNamedArgs
,
"rgdispidNamedArgs != NULL
\n
"
);
ok
(
!
pdp
->
cArgs
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
!
pdp
->
cNamedArgs
,
"cNamedArgs = %d
\n
"
,
pdp
->
cNamedArgs
);
ok
(
pvarRes
!=
NULL
,
"pvarRes == NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
V_VT
(
pvarRes
)
=
VT_I2
;
V_I2
(
pvarRes
)
=
10
;
return
S_OK
;
case
DISPID_TESTOBJ_PROPPUT
:
CHECK_EXPECT
(
testobj_propput_i
);
...
...
@@ -802,6 +826,12 @@ static void run_tests(void)
CHECK_CALLED
(
global_vbvar_d
);
CHECK_CALLED
(
global_vbvar_i
);
SET_EXPECT
(
testobj_propget_d
);
SET_EXPECT
(
testobj_propget_i
);
parse_script_a
(
"dim x
\n
x = testObj.propget"
);
CHECK_CALLED
(
testobj_propget_d
);
CHECK_CALLED
(
testobj_propget_i
);
SET_EXPECT
(
testobj_propput_d
);
SET_EXPECT
(
testobj_propput_i
);
parse_script_a
(
"testObj.propput = 1"
);
...
...
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