[evolution/wip/webkit2] Add Alt key press/release test utils sequences
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Add Alt key press/release test utils sequences
- Date: Tue, 2 Aug 2016 08:10:34 +0000 (UTC)
commit f2d0746b1217809b434d37b3ae1eee9aa4a87e20
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 2 10:11:28 2016 +0200
Add Alt key press/release test utils sequences
e-util/test-html-editor-units-utils.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units-utils.c b/e-util/test-html-editor-units-utils.c
index 96030a9..b44004a 100644
--- a/e-util/test-html-editor-units-utils.c
+++ b/e-util/test-html-editor-units-utils.c
@@ -597,6 +597,28 @@ test_utils_process_sequence (TestFixture *fixture,
}
call_press = FALSE;
break;
+ case 'A': /* Alt key press */
+ keyval = GDK_KEY_Alt_L;
+
+ if ((fixture->key_state & GDK_MOD1_MASK) != 0) {
+ success = FALSE;
+ g_warning ("%s: Alt is already pressed", G_STRFUNC);
+ } else {
+ change_state |= GDK_MOD1_MASK;
+ }
+ call_release = FALSE;
+ break;
+ case 'a': /* Alt key release */
+ keyval = GDK_KEY_Alt_L;
+
+ if ((fixture->key_state & GDK_MOD1_MASK) == 0) {
+ success = FALSE;
+ g_warning ("%s: Alt is already released", G_STRFUNC);
+ } else {
+ change_state &= ~GDK_MOD1_MASK;
+ }
+ call_press = FALSE;
+ break;
case 'h': /* Home key press + release */
keyval = GDK_KEY_Home;
break;
@@ -734,6 +756,8 @@ test_utils_pick_undo_content (const GSList *undo_stack,
/ "s" ; Shift key release
/ "C" ; Ctrl key press
/ "c" ; Ctrl key release
+ / "A" ; Alt key press
+ / "a" ; Alt key release
/ "h" ; Home key press + release
/ "e" ; End key press + release
/ "P" ; Page-Up key press + release
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]