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
3ff0890c
Commit
3ff0890c
authored
May 07, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add tests for the return values of TreeView_SelectItem in test_select.
parent
cbbfbca9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
treeview.c
dlls/comctl32/tests/treeview.c
+13
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
3ff0890c
...
...
@@ -388,17 +388,23 @@ static void test_select(void)
/* root-none select tests */
flush_sequences
(
MsgSequences
,
NUM_MSG_SEQUENCES
);
r
=
TreeView_SelectItem
(
hTree
,
NULL
);
expect
(
TRUE
,
r
);
Clear
();
AddItem
(
'1'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'2'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'3'
);
r
=
TreeView_SelectItem
(
hTree
,
NULL
);
expect
(
TRUE
,
r
);
AddItem
(
'4'
);
r
=
TreeView_SelectItem
(
hTree
,
NULL
);
expect
(
TRUE
,
r
);
AddItem
(
'5'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'.'
);
ok
(
!
strcmp
(
sequence
,
"1(nR)nR23(Rn)Rn45(nR)nR."
),
"root-none select test
\n
"
);
ok_sequence
(
MsgSequences
,
TREEVIEW_SEQ_INDEX
,
rootnone_select_seq
,
...
...
@@ -407,17 +413,24 @@ static void test_select(void)
/* root-child select tests */
flush_sequences
(
MsgSequences
,
NUM_MSG_SEQUENCES
);
r
=
TreeView_SelectItem
(
hTree
,
NULL
);
expect
(
TRUE
,
r
);
Clear
();
AddItem
(
'1'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'2'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'3'
);
r
=
TreeView_SelectItem
(
hTree
,
hChild
);
expect
(
TRUE
,
r
);
AddItem
(
'4'
);
r
=
TreeView_SelectItem
(
hTree
,
hChild
);
expect
(
TRUE
,
r
);
AddItem
(
'5'
);
r
=
TreeView_SelectItem
(
hTree
,
hRoot
);
expect
(
TRUE
,
r
);
AddItem
(
'.'
);
ok
(
!
strcmp
(
sequence
,
"1(nR)nR23(RC)RC45(CR)CR."
),
"root-child select test
\n
"
);
ok_sequence
(
MsgSequences
,
TREEVIEW_SEQ_INDEX
,
rootchild_select_seq
,
...
...
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