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
2a81ef06
Commit
2a81ef06
authored
Jan 22, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Skip tests on too old jscript.dll.
parent
65d9ab16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
activex.c
dlls/jscript/tests/activex.c
+29
-3
No files found.
dlls/jscript/tests/activex.c
View file @
2a81ef06
...
...
@@ -720,6 +720,8 @@ static IActiveScriptParse *create_script(void)
hres
=
CoCreateInstance
(
&
CLSID_JScript
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IActiveScript
,
(
void
**
)
&
script
);
ok
(
hres
==
S_OK
,
"CoCreateInstance failed: %08x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
NULL
;
set_safety_options
((
IUnknown
*
)
script
);
...
...
@@ -1058,13 +1060,37 @@ static BOOL register_activex(void)
return
TRUE
;
}
static
BOOL
check_jscript
(
void
)
{
IActiveScriptParse
*
parser
;
BSTR
str
;
HRESULT
hres
;
parser
=
create_script
();
if
(
!
parser
)
return
FALSE
;
str
=
a2bstr
(
"if(!('localeCompare' in String.prototype)) throw 1;"
);
hres
=
IActiveScriptParse64_ParseScriptText
(
parser
,
str
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
SysFreeString
(
str
);
IUnknown_Release
(
parser
);
return
hres
==
S_OK
;
}
START_TEST
(
activex
)
{
CoInitialize
(
NULL
);
register_activex
();
test_ActiveXObject
();
if
(
check_jscript
())
{
register_activex
();
test_ActiveXObject
();
init_registry
(
FALSE
);
}
else
{
win_skip
(
"Broken engine, probably too old
\n
"
);
}
init_registry
(
FALSE
);
CoUninitialize
();
}
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