2
* Copyright 2012-2013 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3, as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the applicable version of the GNU Lesser General Public
12
* License for more details.
14
* You should have received a copy of both the GNU Lesser General Public
15
* License version 3 along with this program. If not, see
16
* <http://www.gnu.org/licenses/>
18
* Authored by: Marco Trevisan (Treviño) <3v1n0@ubuntu.com>
22
#include "test_im_text_entry.h"
26
TEST(TestIMTextEntry, AltKeybindings)
28
MockTextEntry text_entry;
30
for (unsigned long keysym = 0; keysym < XK_VoidSymbol; ++keysym)
32
TestEvent event(KEY_MODIFIER_ALT, keysym);
33
EXPECT_FALSE(text_entry.InspectKeyEvent(event));
37
TEST(TestIMTextEntry, SuperKeybindings)
39
MockTextEntry text_entry;
41
for (unsigned long keysym = 0; keysym < XK_VoidSymbol; ++keysym)
43
TestEvent event(KEY_MODIFIER_SUPER, keysym);
44
EXPECT_FALSE(text_entry.InspectKeyEvent(event));