Commit 3785dd1f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32/tests: Test VK_MENU effect on ToUnicode.

parent ff752311
......@@ -3042,6 +3042,7 @@ static void test_key_map(void)
#define shift 1
#define ctrl 2
#define menu 4
static const struct tounicode_tests
{
......@@ -3054,6 +3055,9 @@ static const struct tounicode_tests
{
{ 0, 0, 'a', 1, {'a',0}},
{ 0, shift, 'a', 1, {'A',0}},
{ 0, menu, 'a', 1, {'a',0}},
{ 0, shift|menu, 'a', 1, {'A',0}},
{ 0, shift|ctrl|menu, 'a', 0, {}},
{ 0, ctrl, 'a', 1, {1, 0}},
{ 0, shift|ctrl, 'a', 1, {1, 0}},
{ VK_TAB, ctrl, 0, 0, {}},
......@@ -3142,6 +3146,7 @@ static void test_ToUnicode(void)
state[VK_SHIFT] = state[VK_LSHIFT] = (mod & shift) ? HIGHEST_BIT : 0;
state[VK_CONTROL] = state[VK_LCONTROL] = (mod & ctrl) ? HIGHEST_BIT : 0;
state[VK_MENU] = state[VK_LMENU] = (mod & menu) ? HIGHEST_BIT : 0;
ret = ToUnicode(vk, scan, state, wStr, 4, 0);
ok(ret == utests[i].expect_ret, "%d: got %d expected %d\n", i, ret, utests[i].expect_ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment