[gtk+/quartz-integration: 508/563] Add a test for menus
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 508/563] Add a test for menus
- Date: Sat, 9 Jul 2011 06:48:42 +0000 (UTC)
commit 35d1e58ef7571889291dfdb25a0b57edfe792288
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 1 19:18:18 2011 -0400
Add a test for menus
tests/a11y/menus.txt | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++
tests/a11y/menus.ui | 106 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 228 insertions(+), 0 deletions(-)
---
diff --git a/tests/a11y/menus.txt b/tests/a11y/menus.txt
new file mode 100644
index 0000000..0f43afd
--- /dev/null
+++ b/tests/a11y/menus.txt
@@ -0,0 +1,122 @@
+window1
+ "frame"
+ index: 0
+ state: enabled resizable sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: window
+ alpha: 1
+ menubar1
+ "menu bar"
+ parent: window1
+ index: 0
+ state: enabled sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkSelection>
+ menuitem1
+ "menu"
+ parent: menubar1
+ index: 0
+ name: File
+ state: enabled selectable sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ action 0 keybinding: <Alt>f;<Alt>f;
+ <AtkSelection>
+ imagemenuitem1
+ "menu item"
+ parent: menuitem1
+ index: 0
+ name: New
+ state: enabled selectable sensitive visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ action 0 keybinding: n;<Alt>f:n;
+ imagemenuitem2
+ "menu item"
+ parent: menuitem1
+ index: 1
+ name: bla
+ state: enabled selectable sensitive visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ separatormenuitem1
+ "separator"
+ parent: menuitem1
+ index: 2
+ state: enabled selectable sensitive visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ menuitem3
+ "check menu item"
+ parent: menuitem1
+ index: 3
+ name: check item
+ state: enabled selectable sensitive visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ menuitem2
+ "menu"
+ parent: menubar1
+ index: 1
+ name: Edit
+ state: enabled selectable sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ action 0 keybinding: <Alt>e;<Alt>e;
+ <AtkSelection>
+ menuitem4
+ "radio menu item"
+ parent: menuitem2
+ index: 0
+ name: radio1
+ member-of: menuitem5
+ menuitem4
+ state: enabled selectable sensitive visible
+ toolkit: gail
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ 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
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
diff --git a/tests/a11y/menus.ui b/tests/a11y/menus.ui
new file mode 100644
index 0000000..5b926f3
--- /dev/null
+++ b/tests/a11y/menus.ui
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-go-up</property>
+ <property name="icon-size">5</property>
+ </object>
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkMenuBar" id="menubar1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkMenuItem" id="menuitem1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">_File</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="menu1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkImageMenuItem" id="imagemenuitem1">
+ <property name="label">gtk-new</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImageMenuItem" id="imagemenuitem2">
+ <property name="label" translatable="yes">bla</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="image">image1</property>
+ <property name="use_stock">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparatorMenuItem" id="separatormenuitem1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkCheckMenuItem" id="menuitem3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">check item</property>
+ <property name="use_underline">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="menuitem2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">_Edit</property>
+ <property name="use_underline">True</property>
+ <child type="submenu">
+ <object class="GtkMenu" id="menu2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkRadioMenuItem" id="menuitem4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">radio1</property>
+ <property name="use_underline">True</property>
+ <property name="draw_as_radio">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRadioMenuItem" id="menuitem5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">radio2</property>
+ <property name="use_underline">True</property>
+ <property name="draw_as_radio">True</property>
+ <property name="group">menuitem4</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]