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
273a3a58
Commit
273a3a58
authored
Oct 28, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript/tests: Add more call tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ff55510
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
1 deletion
+80
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+76
-0
run.c
dlls/vbscript/tests/run.c
+4
-1
No files found.
dlls/vbscript/tests/lang.vbs
View file @
273a3a58
...
@@ -1246,6 +1246,59 @@ next
...
@@ -1246,6 +1246,59 @@ next
x
=
1
x
=
1
Call
ok
(
forarr
(
x
)
=
2
,
"forarr(x) = "
&
forarr
(
x
))
Call
ok
(
forarr
(
x
)
=
2
,
"forarr(x) = "
&
forarr
(
x
))
sub
accessArr
()
ok
arr
(
1
)
=
1
,
"arr(1) = "
&
arr
(
1
)
arr
(
1
)
=
2
end
sub
arr
(
1
)
=
1
call
accessArr
ok
arr
(
1
)
=
2
,
"arr(1) = "
&
arr
(
1
)
sub
accessArr2
(
x
,
y
)
ok
arr2
(
x
,
y
)
=
1
,
"arr2(x,y) = "
&
arr2
(
x
,
y
)
x
=
arr2
(
x
,
y
)
arr2
(
x
,
y
)
=
2
end
sub
arr2
(
1
,
2
)
=
1
call
accessArr2
(
1
,
2
)
ok
arr2
(
1
,
2
)
=
2
,
"arr2(1,2) = "
&
arr2
(
1
,
2
)
x
=
Array
(
Array
(
3
))
call
ok
(
x
(
0
)(
0
)
=
3
,
"x(0)(0) = "
&
x
(
0
)(
0
))
function
seta0
(
arr
)
arr
(
0
)
=
2
seta0
=
1
end
function
x
=
Array
(
1
)
seta0
x
ok
x
(
0
)
=
2
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
1
)
seta0
(
x
)
todo_wine_ok
x
(
0
)
=
1
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
Array
(
3
))
seta0
x
(
0
)
call
ok
(
x
(
0
)(
0
)
=
2
,
"x(0)(0) = "
&
x
(
0
)(
0
))
x
=
Array
(
Array
(
3
))
seta0
(
x
(
0
))
call
todo_wine_ok
(
x
(
0
)(
0
)
=
3
,
"x(0)(0) = "
&
x
(
0
)(
0
))
sub
changearg
(
x
)
x
=
2
end
sub
x
=
Array
(
1
)
changearg
x
(
0
)
ok
x
(
0
)
=
2
,
"x(0) = "
&
x
(
0
)
x
=
Array
(
1
)
changearg
(
x
(
0
))
todo_wine_ok
x
(
0
)
=
1
,
"x(0) = "
&
x
(
0
)
Class
ArrClass
Class
ArrClass
Dim
classarr
(
3
)
Dim
classarr
(
3
)
Dim
classnoarr
()
Dim
classnoarr
()
...
@@ -1478,4 +1531,27 @@ Class EndTestClassWithProperty
...
@@ -1478,4 +1531,27 @@ Class EndTestClassWithProperty
Public
default
Property
Get
defprop
Public
default
Property
Get
defprop
defprop
=
x
End
Property
End
Class
defprop
=
x
End
Property
End
Class
class
TestPropSyntax
public
prop
function
getProp
()
set
getProp
=
prop
end
function
public
default
property
get
def
()
def
=
""
end
property
end
class
set
x
=
new
TestPropSyntax
set
x
.
prop
=
new
TestPropSyntax
set
x
.
prop
.
prop
=
new
TestPropSyntax
x
.
prop
.
prop
.
prop
=
2
call
ok
(
x
.
getProp
().
getProp
.
prop
=
2
,
"x.getProp().getProp.prop = "
&
x
.
getProp
().
getProp
.
prop
)
x
.
getprop
.
getprop
().
prop
=
3
call
ok
(
x
.
getProp
.
prop
.
prop
=
3
,
"x.getProp.prop.prop = "
&
x
.
getProp
.
prop
.
prop
)
ok
getVT
(
x
)
=
"VT_DISPATCH*"
,
"getVT(x) = "
&
getVT
(
x
)
todo_wine_ok
getVT
(
x
())
=
"VT_BSTR"
,
"getVT(x()) = "
&
getVT
(
x
())
reportSuccess
()
reportSuccess
()
dlls/vbscript/tests/run.c
View file @
273a3a58
...
@@ -2467,7 +2467,10 @@ static void test_parse_errors(void)
...
@@ -2467,7 +2467,10 @@ static void test_parse_errors(void)
"Call ok(x,
\"
wrong case
\"
)
\n
"
,
"Call ok(x,
\"
wrong case
\"
)
\n
"
,
/* Class...End Class (empty) */
/* Class...End Class (empty) */
"Class C End Class"
"Class C End Class"
,
/* invalid use of parentheses for call statement */
"strcomp(
\"
x
\"
,
\"
y
\"
)"
};
};
HRESULT
hres
;
HRESULT
hres
;
UINT
i
;
UINT
i
;
...
...
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