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
3ebe2ebb
Commit
3ebe2ebb
authored
Jun 02, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: EN_KILLFOCUS handling test.
parent
66b64151
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
listview.c
dlls/comctl32/tests/listview.c
+36
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
3ebe2ebb
...
...
@@ -2892,6 +2892,42 @@ static void test_editbox(void)
hwndedit
=
(
HWND
)
SendMessage
(
hwnd
,
LVM_EDITLABEL
,
0
,
0
);
ok
(
hwndedit
==
NULL
,
"Expected Edit window not to be created
\n
"
);
/* check EN_KILLFOCUS handling */
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
pszText
=
testitemA
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_SETITEMTEXTA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
r
);
SetFocus
(
hwnd
);
hwndedit
=
(
HWND
)
SendMessage
(
hwnd
,
LVM_EDITLABEL
,
0
,
0
);
ok
(
IsWindow
(
hwndedit
),
"Expected Edit window to be created
\n
"
);
/* modify edit and notify control that it lost focus */
r
=
SendMessage
(
hwndedit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
testitem1A
);
expect
(
TRUE
,
r
);
r
=
SendMessage
(
hwnd
,
WM_COMMAND
,
MAKEWPARAM
(
0
,
EN_KILLFOCUS
),
(
LPARAM
)
hwndedit
);
expect
(
0
,
r
);
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
pszText
=
buffer
;
item
.
cchTextMax
=
10
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMTEXTA
,
0
,
(
LPARAM
)
&
item
);
expect
(
strlen
(
item
.
pszText
),
r
);
todo_wine
ok
(
strcmp
(
buffer
,
testitem1A
)
==
0
,
"Expected item text to change
\n
"
);
/* end edit without saving */
r
=
SendMessage
(
hwndedit
,
WM_KEYDOWN
,
VK_ESCAPE
,
0
);
expect
(
0
,
r
);
memset
(
&
item
,
0
,
sizeof
(
item
));
item
.
pszText
=
buffer
;
item
.
cchTextMax
=
10
;
item
.
iItem
=
0
;
item
.
iSubItem
=
0
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMTEXTA
,
0
,
(
LPARAM
)
&
item
);
expect
(
strlen
(
item
.
pszText
),
r
);
todo_wine
ok
(
strcmp
(
buffer
,
testitem1A
)
==
0
,
"Expected item text to change
\n
"
);
DestroyWindow
(
hwnd
);
}
...
...
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