mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 07:00:30 +00:00
comctl32/updown: Fix some test failures on Win95 (comctl32 4.0).
This commit is contained in:
parent
aadadd04fe
commit
484ef1dcbf
@ -393,7 +393,15 @@ static void test_updown_pos32(void)
|
|||||||
/* Set the position to 0 to 1000 */
|
/* Set the position to 0 to 1000 */
|
||||||
SendMessage(updown, UDM_SETRANGE32, 0 , 1000 );
|
SendMessage(updown, UDM_SETRANGE32, 0 , 1000 );
|
||||||
|
|
||||||
|
low = high = -1;
|
||||||
r = SendMessage(updown, UDM_GETRANGE32, (WPARAM) &low , (LPARAM) &high );
|
r = SendMessage(updown, UDM_GETRANGE32, (WPARAM) &low , (LPARAM) &high );
|
||||||
|
if (low == -1)
|
||||||
|
{
|
||||||
|
win_skip("UDM_SETRANGE32/UDM_GETRANGE32 not available\n");
|
||||||
|
DestroyWindow(updown);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
expect(0,low);
|
expect(0,low);
|
||||||
expect(1000,high);
|
expect(1000,high);
|
||||||
|
|
||||||
@ -402,6 +410,7 @@ static void test_updown_pos32(void)
|
|||||||
if (!r)
|
if (!r)
|
||||||
{
|
{
|
||||||
win_skip("UDM_SETPOS32 and UDM_GETPOS32 need 5.80\n");
|
win_skip("UDM_SETPOS32 and UDM_GETPOS32 need 5.80\n");
|
||||||
|
DestroyWindow(updown);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
expect(50,r);
|
expect(50,r);
|
||||||
@ -548,6 +557,12 @@ static void test_updown_unicode(void)
|
|||||||
r = SendMessage(updown, UDM_SETUNICODEFORMAT, 1 , 0);
|
r = SendMessage(updown, UDM_SETUNICODEFORMAT, 1 , 0);
|
||||||
expect(0,r);
|
expect(0,r);
|
||||||
r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
|
r = SendMessage(updown, UDM_GETUNICODEFORMAT, 0 , 0);
|
||||||
|
if (!r)
|
||||||
|
{
|
||||||
|
win_skip("UDM_SETUNICODEFORMAT not available\n");
|
||||||
|
DestroyWindow(updown);
|
||||||
|
return;
|
||||||
|
}
|
||||||
expect(1,r);
|
expect(1,r);
|
||||||
|
|
||||||
/* And now set it back to ANSI */
|
/* And now set it back to ANSI */
|
||||||
|
Loading…
Reference in New Issue
Block a user