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
1f37225a
Commit
1f37225a
authored
Jan 14, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Jan 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Use 'start' and 'end' variables in test comparisons.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61942c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
combo.c
dlls/user32/tests/combo.c
+6
-0
No files found.
dlls/user32/tests/combo.c
View file @
1f37225a
...
...
@@ -477,6 +477,8 @@ static void test_editselection(void)
/* Now what is the selection - still empty */
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
(
WPARAM
)
&
start
,
(
WPARAM
)
&
end
);
ok
(
start
==
0
,
"Unexpected start position for selection %d
\n
"
,
start
);
ok
(
end
==
0
,
"Unexpected end position for selection %d
\n
"
,
end
);
len
=
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
0
,
0
);
ok
(
LOWORD
(
len
)
==
0
,
"Unexpected start position for selection %d
\n
"
,
LOWORD
(
len
));
ok
(
HIWORD
(
len
)
==
0
,
"Unexpected end position for selection %d
\n
"
,
HIWORD
(
len
));
...
...
@@ -484,6 +486,8 @@ static void test_editselection(void)
/* Give it focus, and it gets selected */
SendMessageA
(
hCombo
,
WM_SETFOCUS
,
0
,
(
LPARAM
)
hEdit
);
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
(
WPARAM
)
&
start
,
(
WPARAM
)
&
end
);
ok
(
start
==
0
,
"Unexpected start position for selection %d
\n
"
,
start
);
ok
(
end
==
6
,
"Unexpected end position for selection %d
\n
"
,
end
);
len
=
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
0
,
0
);
ok
(
LOWORD
(
len
)
==
0
,
"Unexpected start position for selection %d
\n
"
,
LOWORD
(
len
));
ok
(
HIWORD
(
len
)
==
6
,
"Unexpected end position for selection %d
\n
"
,
HIWORD
(
len
));
...
...
@@ -524,6 +528,8 @@ static void test_editselection(void)
/* Now what is the selection */
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
(
WPARAM
)
&
start
,
(
WPARAM
)
&
end
);
ok
(
start
==
0
,
"Unexpected start position for selection %d
\n
"
,
start
);
ok
(
end
==
6
,
"Unexpected end position for selection %d
\n
"
,
end
);
len
=
SendMessageA
(
hCombo
,
CB_GETEDITSEL
,
0
,
0
);
ok
(
LOWORD
(
len
)
==
0
,
"Unexpected start position for selection %d
\n
"
,
LOWORD
(
len
));
ok
(
HIWORD
(
len
)
==
6
,
"Unexpected end position for selection %d
\n
"
,
HIWORD
(
len
));
...
...
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