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
bee48efd
Commit
bee48efd
authored
Jan 19, 2011
by
Greg Geldorp
Committed by
Alexandre Julliard
Jan 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Skip some tests on non-English platforms.
parent
3f153007
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
editor.c
dlls/riched20/tests/editor.c
+8
-2
No files found.
dlls/riched20/tests/editor.c
View file @
bee48efd
...
...
@@ -4822,6 +4822,7 @@ static void test_EM_FORMATRANGE(void)
HDC
hdc
;
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
FORMATRANGE
fr
;
BOOL
skip_non_english
;
static
const
struct
{
const
char
*
string
;
/* The string */
int
first
;
/* First 'pagebreak', 0 for don't care */
...
...
@@ -4834,6 +4835,10 @@ static void test_EM_FORMATRANGE(void)
{
"WINE
\r\n\r\n
wine
\r\n
wine"
,
5
,
6
}
};
skip_non_english
=
(
PRIMARYLANGID
(
GetUserDefaultLangID
())
!=
LANG_ENGLISH
);
if
(
skip_non_english
)
skip
(
"Skipping some tests on non-English platform
\n
"
);
hdc
=
GetDC
(
hwndRichEdit
);
ok
(
hdc
!=
NULL
,
"Could not get HDC
\n
"
);
...
...
@@ -4895,7 +4900,8 @@ static void test_EM_FORMATRANGE(void)
fr
.
chrg
.
cpMax
=
-
1
;
r
=
SendMessage
(
hwndRichEdit
,
EM_FORMATRANGE
,
TRUE
,
(
LPARAM
)
&
fr
);
todo_wine
{
ok
(
fr
.
rc
.
bottom
==
(
stringsize
.
cy
*
tpp_y
),
"Expected bottom to be %d, got %d
\n
"
,
(
stringsize
.
cy
*
tpp_y
),
fr
.
rc
.
bottom
);
if
(
!
skip_non_english
)
ok
(
fr
.
rc
.
bottom
==
(
stringsize
.
cy
*
tpp_y
),
"Expected bottom to be %d, got %d
\n
"
,
(
stringsize
.
cy
*
tpp_y
),
fr
.
rc
.
bottom
);
}
if
(
fmtstrings
[
i
].
first
)
todo_wine
{
...
...
@@ -4911,7 +4917,7 @@ static void test_EM_FORMATRANGE(void)
todo_wine
{
ok
(
r
==
fmtstrings
[
i
].
second
,
"Expected %d, got %d
\n
"
,
fmtstrings
[
i
].
second
,
r
);
}
else
else
if
(
!
skip_non_english
)
ok
(
r
<
len
,
"Expected < %d, got %d
\n
"
,
len
,
r
);
/* There is at least on more page, but we don't care */
...
...
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