Hugh McMaster : user32/tests: Use 'start' and 'end' variables in test comparisons.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jan 14 11:10:26 CST 2016


Module: wine
Branch: master
Commit: 1f37225a72d6809ab7038e0b840c431d8a9228f8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f37225a72d6809ab7038e0b840c431d8a9228f8

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Thu Jan 14 20:05:01 2016 +1100

user32/tests: Use 'start' and 'end' variables in test comparisons.

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/combo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/user32/tests/combo.c b/dlls/user32/tests/combo.c
index 2704262..77eb678 100644
--- a/dlls/user32/tests/combo.c
+++ b/dlls/user32/tests/combo.c
@@ -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));




More information about the wine-cvs mailing list