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
fd4affc0
Commit
fd4affc0
authored
Jun 16, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Some more EM_SETSEL tests.
parent
3357fdd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
editor.c
dlls/riched20/tests/editor.c
+10
-1
No files found.
dlls/riched20/tests/editor.c
View file @
fd4affc0
...
...
@@ -4428,7 +4428,7 @@ struct exsetsel_s {
int
_getsel_todo_wine
;
};
const
struct
exsetsel_s
exsetsel_tests
[]
=
{
static
const
struct
exsetsel_s
exsetsel_tests
[]
=
{
/* sanity tests */
{
5
,
10
,
10
,
5
,
10
,
0
},
{
15
,
17
,
17
,
15
,
17
,
0
},
...
...
@@ -4452,6 +4452,9 @@ const struct exsetsel_s exsetsel_tests[] = {
/* test if cpMin > cpMax */
{
15
,
19
,
18
,
15
,
18
,
0
},
{
19
,
15
,
18
,
15
,
18
,
0
},
/* cpMin == strlen() && cpMax > cpMin */
{
17
,
18
,
18
,
17
,
18
},
{
17
,
50
,
18
,
17
,
18
},
};
static
void
check_EM_EXSETSEL
(
HWND
hwnd
,
const
struct
exsetsel_s
*
setsel
,
int
id
)
{
...
...
@@ -4515,6 +4518,7 @@ static void check_EM_SETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id)
static
void
test_EM_SETSEL
(
void
)
{
char
buffA
[
32
];
HWND
hwndRichEdit
=
new_richedit
(
NULL
);
int
i
;
const
int
num_tests
=
sizeof
(
exsetsel_tests
)
/
sizeof
(
struct
exsetsel_s
);
...
...
@@ -4528,6 +4532,11 @@ static void test_EM_SETSEL(void)
check_EM_SETSEL
(
hwndRichEdit
,
&
exsetsel_tests
[
i
],
i
);
}
SendMessageA
(
hwndRichEdit
,
EM_SETSEL
,
17
,
18
);
buffA
[
0
]
=
123
;
SendMessageA
(
hwndRichEdit
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
buffA
);
ok
(
buffA
[
0
]
==
0
,
"selection text %s
\n
"
,
buffA
);
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