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
2be12eac
Commit
2be12eac
authored
Jul 18, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Fixed locale-related test failures.
parent
93eff3e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
api.vbs
dlls/vbscript/tests/api.vbs
+4
-4
run.c
dlls/vbscript/tests/run.c
+21
-7
No files found.
dlls/vbscript/tests/api.vbs
View file @
2be12eac
...
...
@@ -154,8 +154,8 @@ TestUCase "test", "TEST"
TestUCase
"123aBC?"
,
"123ABC?"
TestUCase
""
,
""
TestUCase
1
,
"1"
TestUCase
true
,
"TRUE"
TestUCase
0.123
,
"0.123"
if
isEnglishLang
then
TestUCase
true
,
"TRUE"
TestUCase
0.123
,
doubleAsString
(
0.123
)
TestUCase
Empty
,
""
Call
ok
(
getVT
(
UCase
(
Null
))
=
"VT_NULL"
,
"getVT(UCase(Null)) = "
&
getVT
(
UCase
(
Null
)))
...
...
@@ -168,8 +168,8 @@ TestLCase "test", "test"
TestLCase
"123aBC?"
,
"123abc?"
TestLCase
""
,
""
TestLCase
1
,
"1"
TestLCase
true
,
"true"
TestLCase
0.123
,
"0.123"
if
isEnglishLang
then
TestLCase
true
,
"true"
TestLCase
0.123
,
doubleAsString
(
0.123
)
TestLCase
Empty
,
""
Call
ok
(
getVT
(
LCase
(
Null
))
=
"VT_NULL"
,
"getVT(LCase(Null)) = "
&
getVT
(
LCase
(
Null
)))
...
...
dlls/vbscript/tests/run.c
View file @
2be12eac
...
...
@@ -82,6 +82,7 @@ DEFINE_EXPECT(Next);
#define DISPID_GLOBAL_PROPARGPUT 1011
#define DISPID_GLOBAL_PROPARGPUT1 1012
#define DISPID_GLOBAL_COLLOBJ 1013
#define DISPID_GLOBAL_DOUBLEASSTRING 1014
#define DISPID_TESTOBJ_PROPGET 2000
#define DISPID_TESTOBJ_PROPPUT 2001
...
...
@@ -90,7 +91,7 @@ DEFINE_EXPECT(Next);
static
const
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
static
BOOL
strict_dispid_check
;
static
BOOL
strict_dispid_check
,
is_english
;
static
const
char
*
test_name
=
"(null)"
;
static
int
test_counter
;
...
...
@@ -815,6 +816,11 @@ static HRESULT WINAPI Global_GetDispID(IDispatchEx *iface, BSTR bstrName, DWORD
*
pid
=
DISPID_GLOBAL_COUNTER
;
return
S_OK
;
}
if
(
!
strcmp_wa
(
bstrName
,
"doubleAsString"
))
{
test_grfdex
(
grfdex
,
fdexNameCaseInsensitive
);
*
pid
=
DISPID_GLOBAL_DOUBLEASSTRING
;
return
S_OK
;
}
if
(
strict_dispid_check
&&
strcmp_wa
(
bstrName
,
"x"
))
ok
(
0
,
"unexpected call %s %x
\n
"
,
wine_dbgstr_w
(
bstrName
),
grfdex
);
...
...
@@ -905,12 +911,7 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
ok
(
pei
!=
NULL
,
"pei == NULL
\n
"
);
V_VT
(
pvarRes
)
=
VT_BOOL
;
if
(
is_lang_english
())
{
V_BOOL
(
pvarRes
)
=
VARIANT_TRUE
;
}
else
{
skip
(
"Skipping some tests in non-English UIs
\n
"
);
V_BOOL
(
pvarRes
)
=
VARIANT_FALSE
;
}
V_BOOL
(
pvarRes
)
=
is_english
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
case
DISPID_GLOBAL_VBVAR
:
...
...
@@ -1069,6 +1070,15 @@ static HRESULT WINAPI Global_InvokeEx(IDispatchEx *iface, DISPID id, LCID lcid,
V_VT
(
pvarRes
)
=
VT_I2
;
V_I2
(
pvarRes
)
=
test_counter
++
;
return
S_OK
;
case
DISPID_GLOBAL_DOUBLEASSTRING
:
ok
(
wFlags
==
(
INVOKE_FUNC
|
INVOKE_PROPERTYGET
),
"wFlags = %x
\n
"
,
wFlags
);
ok
(
pdp
->
cArgs
==
1
,
"cArgs = %d
\n
"
,
pdp
->
cArgs
);
ok
(
V_VT
(
pdp
->
rgvarg
)
==
VT_R8
,
"V_VT(pdp->rgvarg) = %d
\n
"
,
V_VT
(
pdp
->
rgvarg
));
ok
(
pvarRes
!=
NULL
,
"pvarRes == NULL
\n
"
);
V_VT
(
pvarRes
)
=
VT_BSTR
;
return
VarBstrFromR8
(
V_R8
(
pdp
->
rgvarg
),
0
,
0
,
&
V_BSTR
(
pvarRes
));
}
ok
(
0
,
"unexpected call %d
\n
"
,
id
);
...
...
@@ -1590,6 +1600,10 @@ START_TEST(run)
int
argc
;
char
**
argv
;
is_english
=
is_lang_english
();
if
(
!
is_english
)
skip
(
"Skipping some tests in non-English UIs
\n
"
);
argc
=
winetest_get_mainargs
(
&
argv
);
CoInitialize
(
NULL
);
...
...
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