push 556f62bab943c37bb6cbad95a6ecb3d73e04a93f
[wine/hacks.git] / dlls / comctl32 / tests / updown.c
blob433c190ae97830083139bda18972e839b916639f
1 /* Unit tests for the up-down control
3 * Copyright 2005 C. Scott Ananian
4 * Copyright (C) 2007 James Hawkins
5 * Copyright (C) 2007 Leslie Choong
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 /* TO TEST:
23 * - send click messages to the up-down control, check the current position
24 * - up-down control automatically positions itself next to its buddy window
25 * - up-down control sets the caption of the buddy window
26 * - test CreateUpDownControl API
27 * - check UDS_AUTOBUDDY style, up-down control selects previous window in z-order
28 * - check UDM_SETBUDDY message
29 * - check UDM_GETBUDDY message
30 * - up-down control and buddy control must have the same parent
31 * - up-down control notifies its parent window when its position changes with UDN_DELTAPOS + WM_VSCROLL or WM_HSCROLL
32 * - check UDS_ALIGN[LEFT,RIGHT]...check that width of buddy window is decreased
33 * - check that UDS_SETBUDDYINT sets the caption of the buddy window when it is changed
34 * - check that the thousands operator is set for large numbers
35 * - check that the thousands operator is not set with UDS_NOTHOUSANDS
36 * - check UDS_ARROWKEYS, control subclasses the buddy window so that it processes the keys when it has focus
37 * - check UDS_HORZ
38 * - check changing past min/max values
39 * - check UDS_WRAP wraps values past min/max, incrementing past upper value wraps position to lower value
40 * - can change control's position, min/max pos, radix
41 * - check UDM_GETPOS, for up-down control with a buddy window, position is the caption of the buddy window, so change the
42 * caption of the buddy window then call UDM_GETPOS
43 * - check UDM_SETRANGE, max can be less than min, so clicking the up arrow decreases the current position
44 * - more stuff to test
47 #include <assert.h>
48 #include <windows.h>
49 #include <commctrl.h>
50 #include <stdio.h>
52 #include "wine/test.h"
53 #include "msg.h"
55 #define expect(EXPECTED,GOT) ok((GOT)==(EXPECTED), "Expected %d, got %d\n", (EXPECTED), (GOT))
57 #define NUM_MSG_SEQUENCES 3
58 #define PARENT_SEQ_INDEX 0
59 #define EDIT_SEQ_INDEX 1
60 #define UPDOWN_SEQ_INDEX 2
62 static HWND parent_wnd, edit, updown;
64 static struct msg_sequence *sequences[NUM_MSG_SEQUENCES];
66 static const struct message create_parent_wnd_seq[] = {
67 { WM_GETMINMAXINFO, sent },
68 { WM_NCCREATE, sent },
69 { WM_NCCALCSIZE, sent|wparam, 0 },
70 { WM_CREATE, sent },
71 { WM_SHOWWINDOW, sent|wparam, 1 },
72 { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
73 { WM_QUERYNEWPALETTE, sent|optional },
74 { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
75 { WM_ACTIVATEAPP, sent|wparam, 1 },
76 { WM_NCACTIVATE, sent|wparam, 1 },
77 { WM_ACTIVATE, sent|wparam, 1 },
78 { WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 1 },
79 { WM_IME_NOTIFY, sent|defwinproc|optional },
80 { WM_SETFOCUS, sent|wparam|defwinproc, 0 },
81 /* Win9x adds SWP_NOZORDER below */
82 { WM_WINDOWPOSCHANGED, sent, /*|wparam, SWP_SHOWWINDOW|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE*/ },
83 { WM_NCCALCSIZE, sent|wparam|optional, 1 },
84 { WM_SIZE, sent },
85 { WM_MOVE, sent },
86 { 0 }
89 static const struct message add_edit_to_parent_seq[] = {
90 { WM_PARENTNOTIFY, sent|wparam, WM_CREATE },
91 { 0 }
94 static const struct message add_updown_with_edit_seq[] = {
95 { WM_WINDOWPOSCHANGING, sent },
96 { WM_NCCALCSIZE, sent|wparam, TRUE },
97 { WM_WINDOWPOSCHANGED, sent },
98 { WM_SIZE, sent|wparam|defwinproc, SIZE_RESTORED /*, MAKELONG(91, 75) exact size depends on font */ },
99 { 0 }
102 static const struct message add_updown_to_parent_seq[] = {
103 { WM_NOTIFYFORMAT, sent|lparam, 0, NF_QUERY },
104 { WM_QUERYUISTATE, sent|optional },
105 { WM_PARENTNOTIFY, sent|wparam, MAKELONG(WM_CREATE, WM_CREATE) },
106 { 0 }
109 static const struct message get_edit_text_seq[] = {
110 { WM_GETTEXT, sent },
111 { 0 }
114 static const struct message test_updown_pos_seq[] = {
115 { UDM_SETRANGE, sent|lparam, 0, MAKELONG(100,0) },
116 { UDM_GETRANGE, sent},
117 { UDM_SETPOS, sent|lparam, 0, 5},
118 { UDM_GETPOS, sent},
119 { UDM_SETPOS, sent|lparam, 0, 0},
120 { UDM_GETPOS, sent},
121 { UDM_SETPOS, sent|lparam, 0, MAKELONG(-1,0)},
122 { UDM_GETPOS, sent},
123 { UDM_SETPOS, sent|lparam, 0, 100},
124 { UDM_GETPOS, sent},
125 { UDM_SETPOS, sent|lparam, 0, 101},
126 { UDM_GETPOS, sent},
127 { 0 }
130 static const struct message test_updown_pos32_seq[] = {
131 { UDM_SETRANGE32, sent|lparam, 0, 1000 },
132 { UDM_GETRANGE32, sent}, /* Cannot check wparam and lparam as they are ptrs */
133 { UDM_SETPOS32, sent|lparam, 0, 500 },
134 { UDM_GETPOS32, sent},
135 { UDM_SETPOS32, sent|lparam, 0, 0 },
136 { UDM_GETPOS32, sent},
137 { UDM_SETPOS32, sent|lparam, 0, -1 },
138 { UDM_GETPOS32, sent},
139 { UDM_SETPOS32, sent|lparam, 0, 1000 },
140 { UDM_GETPOS32, sent},
141 { UDM_SETPOS32, sent|lparam, 0, 1001 },
142 { UDM_GETPOS32, sent},
143 { 0 }
146 static const struct message test_updown_buddy_seq[] = {
147 { UDM_GETBUDDY, sent },
148 { UDM_SETBUDDY, sent },
149 { WM_STYLECHANGING, sent|defwinproc },
150 { WM_STYLECHANGED, sent|defwinproc },
151 { WM_STYLECHANGING, sent|defwinproc },
152 { WM_STYLECHANGED, sent|defwinproc },
153 { WM_WINDOWPOSCHANGING, sent|defwinproc },
154 { WM_NCCALCSIZE, sent|wparam|optional|defwinproc, 1 },
155 { WM_WINDOWPOSCHANGED, sent|defwinproc },
156 { WM_MOVE, sent|defwinproc },
157 { UDM_GETBUDDY, sent },
158 { 0 }
161 static const struct message test_updown_base_seq[] = {
162 { UDM_SETBASE, sent|wparam, 10 },
163 { UDM_GETBASE, sent },
164 { UDM_SETBASE, sent|wparam, 80 },
165 { UDM_GETBASE, sent },
166 { UDM_SETBASE, sent|wparam, 16 },
167 { UDM_GETBASE, sent },
168 { UDM_SETBASE, sent|wparam, 80 },
169 { UDM_GETBASE, sent },
170 { UDM_SETBASE, sent|wparam, 10 },
171 { UDM_GETBASE, sent },
172 { 0 }
175 static const struct message test_updown_unicode_seq[] = {
176 { UDM_SETUNICODEFORMAT, sent|wparam, 0 },
177 { UDM_GETUNICODEFORMAT, sent },
178 { UDM_SETUNICODEFORMAT, sent|wparam, 1 },
179 { UDM_GETUNICODEFORMAT, sent },
180 { UDM_SETUNICODEFORMAT, sent|wparam, 0 },
181 { UDM_GETUNICODEFORMAT, sent },
182 { 0 }
185 static const struct message test_updown_destroy_seq[] = {
186 { WM_SHOWWINDOW, sent|wparam|lparam, 0, 0 },
187 { WM_WINDOWPOSCHANGING, sent},
188 { WM_WINDOWPOSCHANGED, sent},
189 { WM_DESTROY, sent},
190 { WM_NCDESTROY, sent},
191 { 0 }
194 static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
196 static LONG defwndproc_counter = 0;
197 LRESULT ret;
198 struct message msg;
200 /* log system messages, except for painting */
201 if (message < WM_USER &&
202 message != WM_PAINT &&
203 message != WM_ERASEBKGND &&
204 message != WM_NCPAINT &&
205 message != WM_NCHITTEST &&
206 message != WM_GETTEXT &&
207 message != WM_GETICON &&
208 message != WM_DEVICECHANGE)
210 trace("parent: %p, %04x, %08lx, %08lx\n", hwnd, message, wParam, lParam);
212 msg.message = message;
213 msg.flags = sent|wparam|lparam;
214 if (defwndproc_counter) msg.flags |= defwinproc;
215 msg.wParam = wParam;
216 msg.lParam = lParam;
217 add_message(sequences, PARENT_SEQ_INDEX, &msg);
220 defwndproc_counter++;
221 ret = DefWindowProcA(hwnd, message, wParam, lParam);
222 defwndproc_counter--;
224 return ret;
227 static BOOL register_parent_wnd_class(void)
229 WNDCLASSA cls;
231 cls.style = 0;
232 cls.lpfnWndProc = parent_wnd_proc;
233 cls.cbClsExtra = 0;
234 cls.cbWndExtra = 0;
235 cls.hInstance = GetModuleHandleA(NULL);
236 cls.hIcon = 0;
237 cls.hCursor = LoadCursorA(0, IDC_ARROW);
238 cls.hbrBackground = GetStockObject(WHITE_BRUSH);
239 cls.lpszMenuName = NULL;
240 cls.lpszClassName = "Up-Down test parent class";
241 return RegisterClassA(&cls);
244 static HWND create_parent_window(void)
246 if (!register_parent_wnd_class())
247 return NULL;
249 return CreateWindowEx(0, "Up-Down test parent class",
250 "Up-Down test parent window",
251 WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
252 WS_MAXIMIZEBOX | WS_VISIBLE,
253 0, 0, 100, 100,
254 GetDesktopWindow(), NULL, GetModuleHandleA(NULL), NULL);
257 struct subclass_info
259 WNDPROC oldproc;
262 static LRESULT WINAPI edit_subclass_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
264 struct subclass_info *info = (struct subclass_info *)GetWindowLongPtrA(hwnd, GWLP_USERDATA);
265 static LONG defwndproc_counter = 0;
266 LRESULT ret;
267 struct message msg;
269 trace("edit: %p, %04x, %08lx, %08lx\n", hwnd, message, wParam, lParam);
271 msg.message = message;
272 msg.flags = sent|wparam|lparam;
273 if (defwndproc_counter) msg.flags |= defwinproc;
274 msg.wParam = wParam;
275 msg.lParam = lParam;
276 add_message(sequences, EDIT_SEQ_INDEX, &msg);
278 defwndproc_counter++;
279 ret = CallWindowProcA(info->oldproc, hwnd, message, wParam, lParam);
280 defwndproc_counter--;
281 return ret;
284 static HWND create_edit_control(void)
286 struct subclass_info *info;
287 RECT rect;
289 info = HeapAlloc(GetProcessHeap(), 0, sizeof(struct subclass_info));
290 if (!info)
291 return NULL;
293 GetClientRect(parent_wnd, &rect);
294 edit = CreateWindowExA(0, "EDIT", NULL, WS_CHILD | WS_BORDER | WS_VISIBLE,
295 0, 0, rect.right, rect.bottom,
296 parent_wnd, NULL, GetModuleHandleA(NULL), NULL);
297 if (!edit)
299 HeapFree(GetProcessHeap(), 0, info);
300 return NULL;
303 info->oldproc = (WNDPROC)SetWindowLongPtrA(edit, GWLP_WNDPROC,
304 (LONG_PTR)edit_subclass_proc);
305 SetWindowLongPtrA(edit, GWLP_USERDATA, (LONG_PTR)info);
307 return edit;
310 static LRESULT WINAPI updown_subclass_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
312 struct subclass_info *info = (struct subclass_info *)GetWindowLongPtrA(hwnd, GWLP_USERDATA);
313 static LONG defwndproc_counter = 0;
314 LRESULT ret;
315 struct message msg;
317 trace("updown: %p, %04x, %08lx, %08lx\n", hwnd, message, wParam, lParam);
319 msg.message = message;
320 msg.flags = sent|wparam|lparam;
321 if (defwndproc_counter) msg.flags |= defwinproc;
322 msg.wParam = wParam;
323 msg.lParam = lParam;
324 add_message(sequences, UPDOWN_SEQ_INDEX, &msg);
326 defwndproc_counter++;
327 ret = CallWindowProcA(info->oldproc, hwnd, message, wParam, lParam);
328 defwndproc_counter--;
330 return ret;
333 static HWND create_updown_control(void)
335 struct subclass_info *info;
336 HWND updown;
337 RECT rect;
339 info = HeapAlloc(GetProcessHeap(), 0, sizeof(struct subclass_info));
340 if (!info)
341 return NULL;
343 GetClientRect(parent_wnd, &rect);
344 updown = CreateUpDownControl(WS_CHILD | WS_BORDER | WS_VISIBLE | UDS_ALIGNRIGHT,
345 0, 0, rect.right, rect.bottom, parent_wnd, 1, GetModuleHandleA(NULL), edit,
346 100, 0, 50);
347 if (!updown)
349 HeapFree(GetProcessHeap(), 0, info);
350 return NULL;
353 info->oldproc = (WNDPROC)SetWindowLongPtrA(updown, GWLP_WNDPROC,
354 (LONG_PTR)updown_subclass_proc);
355 SetWindowLongPtrA(updown, GWLP_USERDATA, (LONG_PTR)info);
357 return updown;
360 static void test_updown_pos(void)
362 int r;
364 flush_sequences(sequences, NUM_MSG_SEQUENCES);
366 /* Set Range from 0 to 100 */
367 SendMessage(updown, UDM_SETRANGE, 0 , MAKELONG(100,0) );
368 r = SendMessage(updown, UDM_GETRANGE, 0,0);
369 expect(100,LOWORD(r));
370 expect(0,HIWORD(r));
372 /* Set the position to 5, return is not checked as it was set before func call */
373 SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(5,0) );
374 /* Since UDM_SETBUDDYINT was not set at creation HIWORD(r) will always be 1 as a return from UDM_GETPOS */
375 /* Get the position, which should be 5 */
376 r = SendMessage(updown, UDM_GETPOS, 0 , 0 );
377 expect(5,LOWORD(r));
378 expect(1,HIWORD(r));
380 /* Set the position to 0, return should be 5 */
381 r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(0,0) );
382 expect(5,r);
383 /* Get the position, which should be 0 */
384 r = SendMessage(updown, UDM_GETPOS, 0 , 0 );
385 expect(0,LOWORD(r));
386 expect(1,HIWORD(r));
388 /* Set the position to -1, return should be 0 */
389 r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(-1,0) );
390 expect(0,r);
391 /* Get the position, which should be 0 */
392 r = SendMessage(updown, UDM_GETPOS, 0 , 0 );
393 expect(0,LOWORD(r));
394 expect(1,HIWORD(r));
396 /* Set the position to 100, return should be 0 */
397 r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(100,0) );
398 expect(0,r);
399 /* Get the position, which should be 100 */
400 r = SendMessage(updown, UDM_GETPOS, 0 , 0 );
401 expect(100,LOWORD(r));
402 expect(1,HIWORD(r));
404 /* Set the position to 101, return should be 100 */
405 r = SendMessage(updown, UDM_SETPOS, 0 , MAKELONG(101,0) );
406 expect(100,r);
407 /* Get the position, which should be 100 */
408 r = SendMessage(updown, UDM_GETPOS, 0 , 0 );
409 expect(100,LOWORD(r));
410 expect(1,HIWORD(r));
412 ok_sequence(sequences, UPDOWN_SEQ_INDEX, test_updown_pos_seq , "test updown pos", FALSE);
415 static void test_updown_pos32(void)
417 int r;
418 int low, high;
420 flush_sequences(sequences, NUM_MSG_SEQUENCES);
422 /* Set the position to 0 to 1000 */
423 SendMessage(updown, UDM_SETRANGE32, 0 , 1000 );
425 r = SendMessage(updown, UDM_GETRANGE32, (WPARAM) &low , (LPARAM) &high );
426 expect(0,low);
427 expect(1000,high);
429 /* Set position to 500, don't check return since it is unset*/
430 SendMessage(updown, UDM_SETPOS32, 0 , 500 );
432 /* Since UDM_SETBUDDYINT was not set at creation bRet will always be true as a return from UDM_GETPOS32 */
434 r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high );
435 expect(500,r);
436 expect(1,high);
438 /* Set position to 0, return should be 500 */
439 r = SendMessage(updown, UDM_SETPOS32, 0 , 0 );
440 expect(500,r);
441 r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high );
442 expect(0,r);
443 expect(1,high);
445 /* Set position to -1 which should become 0, return should be 0 */
446 r = SendMessage(updown, UDM_SETPOS32, 0 , -1 );
447 expect(0,r);
448 r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high );
449 expect(0,r);
450 expect(1,high);
452 /* Set position to 1000, return should be 0 */
453 r = SendMessage(updown, UDM_SETPOS32, 0 , 1000 );
454 expect(0,r);
455 r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high );
456 expect(1000,r);
457 expect(1,high);
459 /* Set position to 1001 which should become 1000, return should be 1000 */
460 r = SendMessage(updown, UDM_SETPOS32, 0 , 1001 );
461 expect(1000,r);
462 r = SendMessage(updown, UDM_GETPOS32, 0 , (LPARAM) &high );
463 expect(1000,r);
464 expect(1,high);
466 ok_sequence(sequences, UPDOWN_SEQ_INDEX, test_updown_pos32_seq, "test updown pos32", FALSE);
469 static void test_updown_buddy(void)
471 HWND buddyReturn;
473 flush_sequences(sequences, NUM_MSG_SEQUENCES);
475 buddyReturn = (HWND)SendMessage(updown, UDM_GETBUDDY, 0 , 0 );
476 ok(buddyReturn == edit, "Expected edit handle\n");
478 buddyReturn = (HWND)SendMessage(updown, UDM_SETBUDDY, (WPARAM) edit, 0);
479 ok(buddyReturn == edit, "Expected edit handle\n");
481 buddyReturn = (HWND)SendMessage(updown, UDM_GETBUDDY, 0 , 0 );
482 ok(buddyReturn == edit, "Expected edit handle\n");
484 ok_sequence(sequences, UPDOWN_SEQ_INDEX, test_updown_buddy_seq, "test updown buddy", TRUE);
485 ok_sequence(sequences, EDIT_SEQ_INDEX, add_updown_with_edit_seq, "test updown buddy_edit", FALSE);
488 static void test_updown_base(void)
490 int r;
492 flush_sequences(sequences, NUM_MSG_SEQUENCES);
494 SendMessage(updown, UDM_SETBASE, 10 , 0);
495 r = SendMessage(updown, UDM_GETBASE, 0 , 0);
496 expect(10,r);
498 /* Set base to an invalid value, should return 0 and stay at 10 */
499 r = SendMessage(updown, UDM_SETBASE, 80 , 0);
500 expect(0,r);
501 r = SendMessage(updown, UDM_GETBASE, 0 , 0);
502 expect(10,r);
504 /* Set base to 16 now, should get 16 as the return */
505 r = SendMessage(updown, UDM_SETBASE, 16 , 0);
506 expect(10,r);
507 r = SendMessage(updown, UDM_GETBASE, 0 , 0);
508 expect(16,r);
510 /* Set base to an invalid value, should return 0 and stay at 16 */
511 r = SendMessage(updown, UDM_SETBASE, 80 , 0);
512 expect(0,r);
513 r = SendMessage(updown, UDM_GETBASE, 0 , 0);
514 expect(16,r);
516 /* Set base back to 10, return should be 16 */
517 r = SendMessage(updown, UDM_SETBASE, 10 , 0);
518 expect(16,r);
519 r = SendMessage(updown, UDM_GETBASE, 0 , 0);
520 expect(10,r);
522 ok_sequence(sequences, UPDOWN_SEQ_INDEX, test_updown_base_seq, "test updown base", FALSE);
525 static void test_updown_unicode(void)
527 int r;
529 flush_sequences(sequences, NUM_MSG_SEQUENCES);
531 /* Set it to ANSI, don't check return as we don't know previous state */
532 SendMessage(updown, UDM_SETUNICODEFORMAT, 0 , 0);
533 r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
534 expect(0,r);
536 /* Now set it to Unicode format */
537 r = SendMessage(updown, UDM_SETUNICODEFORMAT, 1 , 0);
538 expect(0,r);
539 r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
540 expect(1,r);
542 /* And now set it back to ANSI */
543 r = SendMessage(updown, UDM_SETUNICODEFORMAT, 0 , 0);
544 expect(1,r);
545 r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
546 expect(0,r);
548 ok_sequence(sequences, UPDOWN_SEQ_INDEX, test_updown_unicode_seq, "test updown unicode", FALSE);
552 static void test_create_updown_control(void)
554 CHAR text[MAX_PATH];
556 parent_wnd = create_parent_window();
557 ok(parent_wnd != NULL, "Failed to create parent window!\n");
558 ok_sequence(sequences, PARENT_SEQ_INDEX, create_parent_wnd_seq, "create parent window", TRUE);
560 flush_sequences(sequences, NUM_MSG_SEQUENCES);
562 edit = create_edit_control();
563 ok(edit != NULL, "Failed to create edit control\n");
564 ok_sequence(sequences, PARENT_SEQ_INDEX, add_edit_to_parent_seq, "add edit control to parent", FALSE);
566 flush_sequences(sequences, NUM_MSG_SEQUENCES);
568 updown = create_updown_control();
569 ok(updown != NULL, "Failed to create updown control\n");
570 ok_sequence(sequences, PARENT_SEQ_INDEX, add_updown_to_parent_seq, "add updown control to parent", TRUE);
571 ok_sequence(sequences, EDIT_SEQ_INDEX, add_updown_with_edit_seq, "add updown control with edit", FALSE);
573 flush_sequences(sequences, NUM_MSG_SEQUENCES);
575 GetWindowTextA(edit, text, MAX_PATH);
576 ok(lstrlenA(text) == 0, "Expected empty string\n");
577 ok_sequence(sequences, EDIT_SEQ_INDEX, get_edit_text_seq, "get edit text", FALSE);
579 flush_sequences(sequences, NUM_MSG_SEQUENCES);
581 test_updown_pos();
582 test_updown_pos32();
583 test_updown_buddy();
584 test_updown_base();
585 test_updown_unicode();
588 START_TEST(updown)
590 InitCommonControls();
591 init_msg_sequences(sequences, NUM_MSG_SEQUENCES);
593 test_create_updown_control();