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
ee131e9e
Commit
ee131e9e
authored
Jul 19, 2022
by
Santino Mazza
Committed by
Alexandre Julliard
Jul 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: When selection is out of view, the scrollbar should move.
Signed-off-by:
Santino Mazza
<
mazzasantino1206@gmail.com
>
parent
1381ced8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
editor.c
dlls/riched20/tests/editor.c
+20
-0
No files found.
dlls/riched20/tests/editor.c
View file @
ee131e9e
...
...
@@ -5018,6 +5018,24 @@ static void check_EM_SETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id)
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
/* When the selection is out of the windows view, the scrollbar should move. */
static
void
check_EM_SETSEL_multiline
(
HWND
hwnd
)
{
int
oldY
;
int
curY
;
const
char
textwithlines
[]
=
"This is a text
\n
"
"with lines
\n
"
"I expect this text
\n
"
"to be
\n
large
\n
enough
\n
"
;
SendMessageA
(
hwnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
textwithlines
);
oldY
=
get_scroll_pos_y
(
hwnd
);
SendMessageA
(
hwnd
,
EM_SETSEL
,
59
,
59
);
curY
=
get_scroll_pos_y
(
hwnd
);
todo_wine
ok
(
oldY
<
curY
,
"oldY %d >= curY %d
\n
"
,
oldY
,
curY
);
}
static
void
test_EM_SETSEL
(
void
)
{
char
buffA
[
32
]
=
{
0
};
...
...
@@ -5058,6 +5076,8 @@ static void test_EM_SETSEL(void)
ok
(
sel_end
==
8
,
"Selection end incorrectly: %d expected 8
\n
"
,
sel_end
);
}
check_EM_SETSEL_multiline
(
hwndRichEdit
);
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