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
d32ee8e4
Commit
d32ee8e4
authored
Aug 13, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added VBScript in HTML tests.
parent
fe7533df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
4 deletions
+52
-4
rsrc.rc
dlls/mshtml/tests/rsrc.rc
+3
-0
script.c
dlls/mshtml/tests/script.c
+15
-4
vbtest.html
dlls/mshtml/tests/vbtest.html
+34
-0
No files found.
dlls/mshtml/tests/rsrc.rc
View file @
d32ee8e4
...
...
@@ -21,3 +21,6 @@ exectest.html HTML "exectest.html"
/* @makedep: jstest.html */
jstest.html HTML "jstest.html"
/* @makedep: vbtest.html */
vbtest.html HTML "vbtest.html"
dlls/mshtml/tests/script.c
View file @
d32ee8e4
...
...
@@ -594,7 +594,9 @@ static HRESULT WINAPI externalDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
switch
(
id
)
{
case
DISPID_EXTERNAL_OK
:
case
DISPID_EXTERNAL_OK
:
{
VARIANT
*
b
,
*
m
;
ok
(
wFlags
==
INVOKE_FUNC
||
wFlags
==
(
INVOKE_FUNC
|
INVOKE_PROPERTYGET
),
"wFlags = %x
\n
"
,
wFlags
);
ok
(
pdp
!=
NULL
,
"pdp == NULL
\n
"
);
ok
(
pdp
->
rgvarg
!=
NULL
,
"rgvarg == NULL
\n
"
);
...
...
@@ -603,11 +605,19 @@ static HRESULT WINAPI externalDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID
ok
(
!
pdp
->
cNamedArgs
,
"cNamedArgs = %d
\n
"
,
pdp
->
cNamedArgs
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
,
"V_VT(psp->rgvargs) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_BOOL
,
"V_VT(psp->rgvargs+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_BOOL
(
pdp
->
rgvarg
+
1
),
"%s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
pdp
->
rgvarg
)));
m
=
pdp
->
rgvarg
;
if
(
V_VT
(
m
)
==
(
VT_BYREF
|
VT_VARIANT
))
m
=
V_BYREF
(
m
);
ok
(
V_VT
(
m
)
==
VT_BSTR
,
"V_VT(psp->rgvargs) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
b
=
pdp
->
rgvarg
+
1
;
if
(
V_VT
(
b
)
==
(
VT_BYREF
|
VT_VARIANT
))
b
=
V_BYREF
(
b
);
ok
(
V_VT
(
b
)
==
VT_BOOL
,
"V_VT(b) = %d
\n
"
,
V_VT
(
b
));
ok
(
V_BOOL
(
b
),
"%s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
m
)));
return
S_OK
;
}
case
DISPID_EXTERNAL_TRACE
:
ok
(
wFlags
==
INVOKE_FUNC
,
"wFlags = %x
\n
"
,
wFlags
);
...
...
@@ -2732,6 +2742,7 @@ static void run_js_tests(void)
{
run_js_script
(
"jstest.html"
);
run_js_script
(
"exectest.html"
);
run_js_script
(
"vbtest.html"
);
}
static
BOOL
init_registry
(
BOOL
init
)
...
...
dlls/mshtml/tests/vbtest.html
0 → 100644
View file @
d32ee8e4
<html>
<head>
<script
type=
"text/vbscript"
>
Dim
counter
counter
=
1
Sub
ok
(
b
,
m
)
Call
external
.
ok
(
b
,
m
)
End
Sub
</script>
<script>
' Verifies that we'
re
in
VBScript
although
there
is
no
type
specified
If
true
then
counter
=
counter
+
1
</script>
<script
type=
"text/javascript"
>
// We're in javascript
</script>
<script
type=
"text/vbscript"
>
' And back to VBScript
If true then counter = counter+1
Sub runTest()
Call ok(counter = 3, "counter = " & counter)
Call external.reportSuccess()
End Sub
</script>
</script>
<body>
<script>
runTest
()
</script>
</body>
</html>
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