From 2d655446ba11d4bfca69cd051517aa6f5f8338de Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 1 Jul 2011 19:18:18 -0400 Subject: [PATCH] Add a test for menus --- tests/a11y/menus.txt | 122 +++++++++++++++++++++++++++++++++++++++++++ tests/a11y/menus.ui | 106 +++++++++++++++++++++++++++++++++++++ 2 files changed, 228 insertions(+) create mode 100644 tests/a11y/menus.txt create mode 100644 tests/a11y/menus.ui diff --git a/tests/a11y/menus.txt b/tests/a11y/menus.txt new file mode 100644 index 0000000000..0f43afd961 --- /dev/null +++ b/tests/a11y/menus.txt @@ -0,0 +1,122 @@ +window1 + "frame" + index: 0 + state: enabled resizable sensitive showing visible + toolkit: gail + + layer: window + alpha: 1 + menubar1 + "menu bar" + parent: window1 + index: 0 + state: enabled sensitive showing visible + toolkit: gail + + layer: widget + alpha: 1 + + menuitem1 + "menu" + parent: menubar1 + index: 0 + name: File + state: enabled selectable sensitive showing visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + action 0 keybinding: f;f; + + imagemenuitem1 + "menu item" + parent: menuitem1 + index: 0 + name: New + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + action 0 keybinding: n;f:n; + imagemenuitem2 + "menu item" + parent: menuitem1 + index: 1 + name: bla + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + separatormenuitem1 + "separator" + parent: menuitem1 + index: 2 + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + menuitem3 + "check menu item" + parent: menuitem1 + index: 3 + name: check item + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + menuitem2 + "menu" + parent: menubar1 + index: 1 + name: Edit + state: enabled selectable sensitive showing visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + action 0 keybinding: e;e; + + menuitem4 + "radio menu item" + parent: menuitem2 + index: 0 + name: radio1 + member-of: menuitem5 + menuitem4 + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click + menuitem5 + "radio menu item" + parent: menuitem2 + index: 1 + name: radio2 + member-of: menuitem5 + menuitem4 + state: enabled selectable sensitive visible + toolkit: gail + + layer: popup + alpha: 1 + + action 0 name: click diff --git a/tests/a11y/menus.ui b/tests/a11y/menus.ui new file mode 100644 index 0000000000..5b926f3917 --- /dev/null +++ b/tests/a11y/menus.ui @@ -0,0 +1,106 @@ + + + + + True + False + gtk-go-up + 5 + + + False + + + True + False + + + True + False + False + _File + True + + + True + False + + + gtk-new + True + False + False + True + True + + + + + bla + True + False + False + image1 + False + + + + + True + False + False + + + + + True + False + False + check item + True + + + + + + + + + True + False + False + _Edit + True + + + True + False + + + True + False + False + radio1 + True + True + + + + + True + False + False + radio2 + True + True + menuitem4 + + + + + + + + + +