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
041d7d22
Commit
041d7d22
authored
Jul 22, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make execScript tests more generic.
parent
e722268d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
script.c
dlls/mshtml/tests/script.c
+7
-4
No files found.
dlls/mshtml/tests/script.c
View file @
041d7d22
...
...
@@ -181,6 +181,9 @@ static BSTR a2bstr(const char *str)
BSTR
ret
;
int
len
;
if
(
!
str
)
return
NULL
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
ret
=
SysAllocStringLen
(
NULL
,
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
...
...
@@ -2454,7 +2457,7 @@ static const char simple_script_str[] =
"<script language=
\"
TestScript
\"
>simple script</script>"
"</body></html>"
;
static
void
test_exec_script
(
IHTMLDocument2
*
doc
)
static
void
test_exec_script
(
IHTMLDocument2
*
doc
,
const
char
*
codea
,
const
char
*
langa
)
{
IHTMLWindow2
*
window
;
BSTR
code
,
lang
;
...
...
@@ -2464,8 +2467,8 @@ static void test_exec_script(IHTMLDocument2 *doc)
hres
=
IHTMLDocument2_get_parentWindow
(
doc
,
&
window
);
ok
(
hres
==
S_OK
,
"get_parentWindow failed: %08x
\n
"
,
hres
);
code
=
a2bstr
(
"execScript call"
);
lang
=
a2bstr
(
"TestScript"
);
code
=
a2bstr
(
codea
);
lang
=
a2bstr
(
langa
);
SET_EXPECT
(
ParseScriptText_execScript
);
hres
=
IHTMLWindow2_execScript
(
window
,
code
,
lang
,
&
v
);
...
...
@@ -2524,7 +2527,7 @@ static void test_simple_script(void)
CHECK_CALLED
(
ParseScriptText_script
);
CHECK_CALLED
(
SetScriptState_CONNECTED
);
test_exec_script
(
doc
);
test_exec_script
(
doc
,
"execScript call"
,
"TestScript"
);
if
(
site
)
IActiveScriptSite_Release
(
site
);
...
...
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