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
129183eb
Commit
129183eb
authored
Mar 26, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added JScriptEncode object tests.
parent
4a9eea35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
jscript.c
dlls/jscript/tests/jscript.c
+10
-1
No files found.
dlls/jscript/tests/jscript.c
View file @
129183eb
...
...
@@ -31,6 +31,8 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
static
const
CLSID
CLSID_JScript
=
{
0xf414c260
,
0x6ac0
,
0x11cf
,{
0xb6
,
0xd1
,
0x00
,
0xaa
,
0x00
,
0xbb
,
0xbb
,
0x58
}};
static
const
CLSID
CLSID_JScriptEncode
=
{
0xf414c262
,
0x6ac0
,
0x11cf
,{
0xb6
,
0xd1
,
0x00
,
0xaa
,
0x00
,
0xbb
,
0xbb
,
0x58
}};
#define DEFINE_EXPECT(func) \
static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
...
...
@@ -66,6 +68,8 @@ DEFINE_EXPECT(OnStateChange_INITIALIZED);
DEFINE_EXPECT
(
OnEnterScript
);
DEFINE_EXPECT
(
OnLeaveScript
);
static
const
CLSID
*
engine_clsid
=
&
CLSID_JScript
;
static
BSTR
a2bstr
(
const
char
*
str
)
{
BSTR
ret
;
...
...
@@ -409,7 +413,7 @@ static IActiveScript *create_jscript(void)
IActiveScript
*
ret
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_JScript
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
hres
=
CoCreateInstance
(
engine_clsid
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IActiveScript
,
(
void
**
)
&
ret
);
ok
(
hres
==
S_OK
,
"CoCreateInstance failed: %08x
\n
"
,
hres
);
...
...
@@ -662,10 +666,15 @@ START_TEST(jscript)
CoInitialize
(
NULL
);
if
(
check_jscript
())
{
trace
(
"Testing JScript object...
\n
"
);
test_jscript
();
test_jscript2
();
test_jscript_uninitializing
();
test_aggregation
();
trace
(
"Testing JScriptEncode object...
\n
"
);
engine_clsid
=
&
CLSID_JScriptEncode
;
test_jscript
();
}
else
{
win_skip
(
"Broken engine, probably too old
\n
"
);
}
...
...
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