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
7845fe59
Commit
7845fe59
authored
Dec 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added more deleting tests.
parent
3fd2979f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
run.c
dlls/jscript/tests/run.c
+23
-1
No files found.
dlls/jscript/tests/run.c
View file @
7845fe59
...
...
@@ -61,6 +61,7 @@ DEFINE_EXPECT(global_propget_d);
DEFINE_EXPECT
(
global_propget_i
);
DEFINE_EXPECT
(
global_propput_d
);
DEFINE_EXPECT
(
global_propput_i
);
DEFINE_EXPECT
(
global_propdelete_d
);
DEFINE_EXPECT
(
global_success_d
);
DEFINE_EXPECT
(
global_success_i
);
DEFINE_EXPECT
(
global_notexists_d
);
...
...
@@ -75,6 +76,7 @@ DEFINE_EXPECT(testobj_onlydispid_i);
DEFINE_EXPECT
(
GetItemInfo_testVal
);
DEFINE_EXPECT
(
ActiveScriptSite_OnScriptError
);
DEFINE_EXPECT
(
invoke_func
);
DEFINE_EXPECT
(
DeleteMemberByDispID
);
#define DISPID_GLOBAL_TESTPROPGET 0x1000
#define DISPID_GLOBAL_TESTPROPPUT 0x1001
...
...
@@ -93,6 +95,7 @@ DEFINE_EXPECT(invoke_func);
#define DISPID_GLOBAL_OBJECT_FLAG 0x100e
#define DISPID_GLOBAL_ISWIN64 0x100f
#define DISPID_GLOBAL_PUREDISP 0x1010
#define DISPID_GLOBAL_TESTPROPDELETE 0x1010
#define DISPID_TESTOBJ_PROP 0x2000
#define DISPID_TESTOBJ_ONLYDISPID 0x2001
...
...
@@ -415,6 +418,12 @@ static HRESULT WINAPI Global_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD
*
pid
=
DISPID_GLOBAL_TESTPROPPUT
;
return
S_OK
;
}
if
(
!
strcmp_wa
(
bstrName
,
"testPropDelete"
))
{
CHECK_EXPECT
(
global_propdelete_d
);
test_grfdex
(
grfdex
,
fdexNameCaseSensitive
);
*
pid
=
DISPID_GLOBAL_TESTPROPDELETE
;
return
S_OK
;
}
if
(
!
strcmp_wa
(
bstrName
,
"getVT"
))
{
test_grfdex
(
grfdex
,
fdexNameCaseSensitive
);
*
pid
=
DISPID_GLOBAL_GETVT
;
...
...
@@ -835,6 +844,13 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
return
DISP_E_MEMBERNOTFOUND
;
}
static
HRESULT
WINAPI
Global_DeleteMemberByDispID
(
IDispatchEx
*
iface
,
DISPID
id
)
{
CHECK_EXPECT
(
DeleteMemberByDispID
);
ok
(
id
==
DISPID_GLOBAL_TESTPROPDELETE
,
"id = %d
\n
"
,
id
);
return
S_OK
;
}
static
IDispatchExVtbl
GlobalVtbl
=
{
DispatchEx_QueryInterface
,
DispatchEx_AddRef
,
...
...
@@ -846,7 +862,7 @@ static IDispatchExVtbl GlobalVtbl = {
Global_GetDispID
,
Global_InvokeEx
,
DispatchEx_DeleteMemberByName
,
DispatchEx
_DeleteMemberByDispID
,
Global
_DeleteMemberByDispID
,
DispatchEx_GetMemberProperties
,
DispatchEx_GetMemberName
,
DispatchEx_GetNextDispID
,
...
...
@@ -1465,6 +1481,12 @@ static void run_tests(void)
parse_script_a
(
"delete testObj.deleteTest;"
);
CHECK_CALLED
(
testobj_delete
);
SET_EXPECT
(
global_propdelete_d
);
SET_EXPECT
(
DeleteMemberByDispID
);
parse_script_a
(
"delete testPropDelete;"
);
CHECK_CALLED
(
global_propdelete_d
);
CHECK_CALLED
(
DeleteMemberByDispID
);
parse_script_a
(
"ok(typeof(test) === 'object',
\"
typeof(test) != 'object'
\"
);"
);
parse_script_a
(
"function reportSuccess() {}; reportSuccess();"
);
...
...
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