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
8ec60e97
Commit
8ec60e97
authored
Jan 27, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Jan 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched32: Test EM_FINDTEXT searching for end of line characters.
EM_FINDTEXT should be able to find end of line characters, but currently it doesn't.
parent
61308257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
editor.c
dlls/riched32/tests/editor.c
+15
-0
No files found.
dlls/riched32/tests/editor.c
View file @
8ec60e97
...
...
@@ -535,6 +535,8 @@ static void test_EM_GETSELTEXT(void)
static
const
char
haystack
[]
=
"WINEWine wineWine wine WineWine"
;
/* ^0 ^10 ^20 ^30 */
static
const
char
haystack2
[]
=
"first
\r\r\n
second"
;
struct
find_s
{
int
start
;
int
end
;
...
...
@@ -620,6 +622,13 @@ struct find_s find_tests2[] = {
{
4
,
-
1
,
"INEW"
,
0
,
10
},
};
struct
find_s
find_tests3
[]
=
{
/* Searching for end of line characters */
{
0
,
-
1
,
"t
\r\r\n
s"
,
FR_DOWN
|
FR_MATCHCASE
,
4
},
{
6
,
-
1
,
"
\r\n
"
,
FR_DOWN
|
FR_MATCHCASE
,
6
},
{
7
,
-
1
,
"
\n
"
,
FR_DOWN
|
FR_MATCHCASE
,
7
},
};
static
void
check_EM_FINDTEXT
(
HWND
hwnd
,
const
char
*
name
,
struct
find_s
*
f
,
int
id
)
{
int
findloc
;
FINDTEXT
ft
;
...
...
@@ -682,6 +691,12 @@ static void test_EM_FINDTEXT(void)
run_tests_EM_FINDTEXT
(
hwndRichEdit
,
"2"
,
find_tests2
,
sizeof
(
find_tests2
)
/
sizeof
(
struct
find_s
));
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
haystack2
);
/* Haystack text 2 (with EOL characters) */
todo_wine
run_tests_EM_FINDTEXT
(
hwndRichEdit
,
"3"
,
find_tests3
,
sizeof
(
find_tests3
)
/
sizeof
(
struct
find_s
));
DestroyWindow
(
hwndRichEdit
);
}
...
...
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