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
2f7453f8
Commit
2f7453f8
authored
Jun 15, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript/tests: Fix some typos.
parent
5523820b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
api.js
dlls/jscript/tests/api.js
+2
-2
run.c
dlls/jscript/tests/run.c
+19
-19
No files found.
dlls/jscript/tests/api.js
View file @
2f7453f8
...
@@ -395,7 +395,7 @@ ok(tmp === "2,ad", "arr.concat = " + tmp);
...
@@ -395,7 +395,7 @@ ok(tmp === "2,ad", "arr.concat = " + tmp);
m
=
"a+bcabc"
.
match
(
"a+"
);
m
=
"a+bcabc"
.
match
(
"a+"
);
ok
(
typeof
(
m
)
===
"object"
,
"typeof m is not object"
);
ok
(
typeof
(
m
)
===
"object"
,
"typeof m is not object"
);
ok
(
m
.
length
===
1
,
"m.length is not 1"
);
ok
(
m
.
length
===
1
,
"m.length is not 1"
);
ok
(
m
[
"0"
]
===
"a"
,
"m[0] is not
\"
a
b
\"
"
);
ok
(
m
[
"0"
]
===
"a"
,
"m[0] is not
\"
a
\"
"
);
r
=
"- [test] -"
.
replace
(
"[test]"
,
"success"
);
r
=
"- [test] -"
.
replace
(
"[test]"
,
"success"
);
ok
(
r
===
"- success -"
,
"r = "
+
r
+
" expected '- success -'"
);
ok
(
r
===
"- success -"
,
"r = "
+
r
+
" expected '- success -'"
);
...
@@ -408,7 +408,7 @@ ok(r === "test", "r = " + r + " expected 'test'");
...
@@ -408,7 +408,7 @@ ok(r === "test", "r = " + r + " expected 'test'");
function
replaceFunc3
(
m
,
off
,
str
)
{
function
replaceFunc3
(
m
,
off
,
str
)
{
ok
(
arguments
.
length
===
3
,
"arguments.length = "
+
arguments
.
length
);
ok
(
arguments
.
length
===
3
,
"arguments.length = "
+
arguments
.
length
);
ok
(
m
===
"[test]"
,
"m = "
+
m
+
" expected [test
1
]"
);
ok
(
m
===
"[test]"
,
"m = "
+
m
+
" expected [test]"
);
ok
(
off
===
1
,
"off = "
+
off
+
" expected 0"
);
ok
(
off
===
1
,
"off = "
+
off
+
" expected 0"
);
ok
(
str
===
"-[test]-"
,
"str = "
+
arguments
[
3
]);
ok
(
str
===
"-[test]-"
,
"str = "
+
arguments
[
3
]);
return
"ret"
;
return
"ret"
;
...
...
dlls/jscript/tests/run.c
View file @
2f7453f8
...
@@ -569,8 +569,8 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
...
@@ -569,8 +569,8 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
,
"V_VT(p
sp->rgvargs
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
,
"V_VT(p
dp->rgvarg
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_BOOL
,
"V_VT(p
sp->rgvargs+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_BOOL
,
"V_VT(p
dp->rgvarg+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
1
));
ok
(
V_BOOL
(
pdp
->
rgvarg
+
1
),
"%s: %s
\n
"
,
test_name
,
wine_dbgstr_w
(
V_BSTR
(
pdp
->
rgvarg
)));
ok
(
V_BOOL
(
pdp
->
rgvarg
+
1
),
"%s: %s
\n
"
,
test_name
,
wine_dbgstr_w
(
V_BSTR
(
pdp
->
rgvarg
)));
return
S_OK
;
return
S_OK
;
...
@@ -585,7 +585,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
...
@@ -585,7 +585,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
,
"V_VT(p
sp->rgvargs
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
,
"V_VT(p
dp->rgvarg
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
if
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
)
if
(
V_VT
(
pdp
->
rgvarg
)
==
VT_BSTR
)
trace
(
"%s: %s
\n
"
,
test_name
,
wine_dbgstr_w
(
V_BSTR
(
pdp
->
rgvarg
)));
trace
(
"%s: %s
\n
"
,
test_name
,
wine_dbgstr_w
(
V_BSTR
(
pdp
->
rgvarg
)));
...
@@ -764,7 +764,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
...
@@ -764,7 +764,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
pvarRes
==
NULL
,
"pvarRes != NULL
\n
"
);
ok
(
pvarRes
==
NULL
,
"pvarRes != NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_DISPATCH
,
"V_VT(arg) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_DISPATCH
,
"V_VT(
pdp->rgv
arg) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_DISPATCH
(
pdp
->
rgvarg
)
==
(
IDispatch
*
)
iface
,
"disp != iface
\n
"
);
ok
(
V_DISPATCH
(
pdp
->
rgvarg
)
==
(
IDispatch
*
)
iface
,
"disp != iface
\n
"
);
return
S_OK
;
return
S_OK
;
...
@@ -874,14 +874,14 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
...
@@ -874,14 +874,14 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_I4
,
"V_VT(p
sp->rgvargs
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_I4
,
"V_VT(p
dp->rgvarg
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_I4
(
pdp
->
rgvarg
)
==
2
,
"V_I4(p
sp->rgvargs
) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
));
ok
(
V_I4
(
pdp
->
rgvarg
)
==
2
,
"V_I4(p
dp->rgvarg
) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_I4
,
"V_VT(p
sp->rgvargs
+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
1
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_I4
,
"V_VT(p
dp->rgvarg
+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
1
));
ok
(
V_I4
(
pdp
->
rgvarg
+
1
)
==
1
,
"V_I4(p
sp->rgvargs
+1) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
1
));
ok
(
V_I4
(
pdp
->
rgvarg
+
1
)
==
1
,
"V_I4(p
dp->rgvarg
+1) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
1
));
ok
(
V_VT
(
pdp
->
rgvarg
+
2
)
==
VT_I4
,
"V_VT(p
sp->rgvargs
+2) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
2
));
ok
(
V_VT
(
pdp
->
rgvarg
+
2
)
==
VT_I4
,
"V_VT(p
dp->rgvarg
+2) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
2
));
ok
(
V_I4
(
pdp
->
rgvarg
+
2
)
==
0
,
"V_I4(p
sp->rgvargs
+2) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
2
));
ok
(
V_I4
(
pdp
->
rgvarg
+
2
)
==
0
,
"V_I4(p
dp->rgvarg
+2) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
2
));
return
S_OK
;
return
S_OK
;
case
DISPID_GLOBAL_OBJECT_FLAG
:
{
case
DISPID_GLOBAL_OBJECT_FLAG
:
{
...
@@ -952,19 +952,19 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
...
@@ -952,19 +952,19 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
pdp
->
cArgs
==
5
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
pdp
->
cArgs
==
5
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
!
pvarRes
,
"pvarRes != NULL
\n
"
);
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_I4
,
"V_VT(p
sp->rgvargs+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
+
1
)
==
VT_I4
,
"V_VT(p
dp->rgvarg+1) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
1
));
ok
(
V_I4
(
pdp
->
rgvarg
+
1
)
==
10
,
"V_I4(p
sp->rgvargs+1) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
));
ok
(
V_I4
(
pdp
->
rgvarg
+
1
)
==
10
,
"V_I4(p
dp->rgvarg+1) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
1
));
ok
(
V_VT
(
pdp
->
rgvarg
+
2
)
==
VT_I4
,
"V_VT(p
sp->rgvargs+2) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
1
));
ok
(
V_VT
(
pdp
->
rgvarg
+
2
)
==
VT_I4
,
"V_VT(p
dp->rgvarg+2) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
2
));
ok
(
V_I4
(
pdp
->
rgvarg
+
2
)
==
10
,
"V_I4(p
sp->rgvargs+2) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
1
));
ok
(
V_I4
(
pdp
->
rgvarg
+
2
)
==
10
,
"V_I4(p
dp->rgvarg+2) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
2
));
ok
(
V_VT
(
pdp
->
rgvarg
+
3
)
==
VT_I4
,
"V_VT(p
sp->rgvargs
+3) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
3
));
ok
(
V_VT
(
pdp
->
rgvarg
+
3
)
==
VT_I4
,
"V_VT(p
dp->rgvarg
+3) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
3
));
ok
(
V_I4
(
pdp
->
rgvarg
+
3
)
==
22
,
"V_I4(p
sp->rgvargs
+3) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
3
));
ok
(
V_I4
(
pdp
->
rgvarg
+
3
)
==
22
,
"V_I4(p
dp->rgvarg
+3) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
3
));
ok
(
V_VT
(
pdp
->
rgvarg
+
4
)
==
VT_I4
,
"V_VT(p
sp->rgvargs
+4) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
4
));
ok
(
V_VT
(
pdp
->
rgvarg
+
4
)
==
VT_I4
,
"V_VT(p
dp->rgvarg
+4) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
+
4
));
ok
(
V_I4
(
pdp
->
rgvarg
+
4
)
==
22
,
"V_I4(p
sp->rgvargs
+4) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
4
));
ok
(
V_I4
(
pdp
->
rgvarg
+
4
)
==
22
,
"V_I4(p
dp->rgvarg
+4) = %d
\n
"
,
V_I4
(
pdp
->
rgvarg
+
4
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_DISPATCH
,
"V_VT(p
sp->rgvargs
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_DISPATCH
,
"V_VT(p
dp->rgvarg
) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
V_VT
(
args
)
=
VT_I2
;
V_VT
(
args
)
=
VT_I2
;
V_I2
(
args
)
=
2
;
V_I2
(
args
)
=
2
;
...
...
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