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
4db999eb
Commit
4db999eb
authored
May 24, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Use message return values in TreeView tests.
parent
ce12717c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
treeview.c
dlls/comctl32/tests/treeview.c
+11
-6
No files found.
dlls/comctl32/tests/treeview.c
View file @
4db999eb
...
...
@@ -276,7 +276,8 @@ static void TestCallback(void)
CHAR
buf
[
128
];
LRESULT
ret
;
TreeView_DeleteAllItems
(
hTree
);
ret
=
TreeView_DeleteAllItems
(
hTree
);
ok
(
ret
==
TRUE
,
"ret
\n
"
);
ins
.
hParent
=
TVI_ROOT
;
ins
.
hInsertAfter
=
TVI_ROOT
;
U
(
ins
).
item
.
mask
=
TVIF_TEXT
;
...
...
@@ -301,7 +302,8 @@ static void TestCallback(void)
assert
(
hItem1
);
tvi
.
hItem
=
hItem1
;
TreeView_GetItem
(
hTree
,
&
tvi
);
ret
=
TreeView_GetItem
(
hTree
,
&
tvi
);
ok
(
ret
==
TRUE
,
"ret
\n
"
);
ok
(
strcmp
(
tvi
.
pszText
,
test_string
)
==
0
,
"Item text mismatch %s vs %s
\n
"
,
tvi
.
pszText
,
test_string
);
...
...
@@ -310,7 +312,8 @@ static void TestCallback(void)
ret
=
TreeView_SetItem
(
hTree
,
&
tvi
);
ok
(
ret
==
1
,
"Expected SetItem return 1, got %ld
\n
"
,
ret
);
tvi
.
pszText
=
buf
;
TreeView_GetItem
(
hTree
,
&
tvi
);
ret
=
TreeView_GetItem
(
hTree
,
&
tvi
);
ok
(
ret
==
TRUE
,
"Expected GetItem return TRUE, got %ld
\n
"
,
ret
);
ok
(
strcmp
(
tvi
.
pszText
,
TEST_CALLBACK_TEXT
)
==
0
,
"Item text mismatch %s vs %s
\n
"
,
tvi
.
pszText
,
TEST_CALLBACK_TEXT
);
...
...
@@ -319,7 +322,8 @@ static void TestCallback(void)
assert
(
hItem2
);
tvi
.
hItem
=
hItem2
;
memset
(
buf
,
0
,
sizeof
(
buf
));
TreeView_GetItem
(
hTree
,
&
tvi
);
ret
=
TreeView_GetItem
(
hTree
,
&
tvi
);
ok
(
ret
==
TRUE
,
"Expected GetItem return TRUE, got %ld
\n
"
,
ret
);
ok
(
strcmp
(
tvi
.
pszText
,
TEST_CALLBACK_TEXT
)
==
0
,
"Item text mismatch %s vs %s
\n
"
,
tvi
.
pszText
,
TEST_CALLBACK_TEXT
);
}
...
...
@@ -755,6 +759,7 @@ static void TestExpandInvisible(void)
HTREEITEM
node
[
5
];
RECT
dummyRect
;
BOOL
nodeVisible
;
LRESULT
ret
;
/* The test builds the following tree and expands then node 1, while node 0 is collapsed.
*
...
...
@@ -766,8 +771,8 @@ static void TestExpandInvisible(void)
*
*/
TreeView_DeleteAllItems
(
hTree
);
ret
=
TreeView_DeleteAllItems
(
hTree
);
ok
(
ret
==
TRUE
,
"ret
\n
"
);
ins
.
hParent
=
TVI_ROOT
;
ins
.
hInsertAfter
=
TVI_ROOT
;
U
(
ins
).
item
.
mask
=
TVIF_TEXT
;
...
...
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