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
8c820434
Commit
8c820434
authored
Jun 03, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched32/tests: Fix a few test failures on NT4 and below.
parent
d2844b15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
editor.c
dlls/riched32/tests/editor.c
+8
-6
No files found.
dlls/riched32/tests/editor.c
View file @
8c820434
...
...
@@ -53,14 +53,15 @@ static void test_WM_SETTEXT(void)
static
const
struct
{
const
char
*
itemtext
;
DWORD
lines
;
DWORD
lines_broken
;
}
testitems
[]
=
{
{
"TestSomeText"
,
1
},
{
"TestSomeText
\r
"
,
1
},
{
"TestSomeText
\r
SomeMoreText
\r
"
,
2
},
{
"TestSomeText
\r
SomeMoreText
\r
"
,
2
,
1
},
/* NT4 and below */
{
"TestSomeText
\n\n
TestSomeText"
,
3
},
{
"TestSomeText
\r\r\n
TestSomeText"
,
2
},
{
"TestSomeText
\r\r\n\r
TestSomeText"
,
3
},
{
"TestSomeText
\r\n\r\r\n\r
TestSomeText"
,
4
},
{
"TestSomeText
\r\r\n\r
TestSomeText"
,
3
,
2
},
/* NT4 and below */
{
"TestSomeText
\r\n\r\r\n\r
TestSomeText"
,
4
,
3
},
/* NT4 and below */
{
"TestSomeText
\r\n
"
,
2
},
{
"TestSomeText
\r\n
SomeMoreText
\r\n
"
,
3
},
{
"TestSomeText
\r\n\r\n
TestSomeText"
,
3
},
...
...
@@ -68,8 +69,8 @@ static void test_WM_SETTEXT(void)
{
"TestSomeText
\r\n
TestSomeText"
,
2
},
{
"TestSomeText
\r\n
\r\n
TestSomeText"
,
3
},
{
"TestSomeText
\n
"
,
2
},
{
"TestSomeText
\r\r\r
"
,
3
},
{
"TestSomeText
\r\r\r
SomeMoreText"
,
4
}
{
"TestSomeText
\r\r\r
"
,
3
,
1
},
/* NT4 and below */
{
"TestSomeText
\r\r\r
SomeMoreText"
,
4
,
2
}
/* NT4 and below */
};
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
int
i
;
...
...
@@ -104,7 +105,8 @@ static void test_WM_SETTEXT(void)
ok
(
result
==
0
,
"[%d] WM_SETTEXT round trip: strcmp = %ld
\n
"
,
i
,
result
);
result
=
SendMessage
(
hwndRichEdit
,
EM_GETLINECOUNT
,
0
,
0
);
ok
(
result
==
testitems
[
i
].
lines
,
ok
(
result
==
testitems
[
i
].
lines
||
broken
(
testitems
[
i
].
lines_broken
&&
result
==
testitems
[
i
].
lines_broken
),
"[%d] EM_GETLINECOUNT returned %ld, expected %d
\n
"
,
i
,
result
,
testitems
[
i
].
lines
);
}
...
...
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