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
ceaf8bfd
Commit
ceaf8bfd
authored
Dec 13, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added test of Date object default value.
parent
6e8490a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
run.c
dlls/jscript/tests/run.c
+26
-0
No files found.
dlls/jscript/tests/run.c
View file @
ceaf8bfd
...
...
@@ -1945,6 +1945,30 @@ static HRESULT parse_script_expr(const char *expr, VARIANT *res)
return
hres
;
}
static
void
test_default_value
(
void
)
{
DISPPARAMS
dp
=
{
0
};
IDispatch
*
disp
;
VARIANT
v
;
HRESULT
hres
;
hres
=
parse_script_expr
(
"new Date()"
,
&
v
);
ok
(
hres
==
S_OK
,
"parse_script_expr failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_DISPATCH
,
"V_VT(v) = %d"
,
V_VT
(
&
v
));
disp
=
V_DISPATCH
(
&
v
);
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IDispatch_Invoke
(
disp
,
DISPID_VALUE
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
dp
,
&
v
,
NULL
,
NULL
);
ok
(
hres
==
S_OK
||
broken
(
hres
==
0x8000ffff
),
"Invoke failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(v) = %d
\n
"
,
V_VT
(
&
v
));
}
VariantClear
(
&
v
);
IDispatch_Release
(
disp
);
}
static
void
test_script_exprs
(
void
)
{
VARIANT
v
;
...
...
@@ -1988,6 +2012,8 @@ static void test_script_exprs(void)
CHECK_CALLED
(
global_success_d
);
CHECK_CALLED
(
global_success_i
);
test_default_value
();
testing_expr
=
FALSE
;
}
...
...
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