forked from AuroraMiddleware/gtk
Add a test for menus
This commit is contained in:
parent
896769df69
commit
2d655446ba
122
tests/a11y/menus.txt
Normal file
122
tests/a11y/menus.txt
Normal file
@ -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
|
106
tests/a11y/menus.ui
Normal file
106
tests/a11y/menus.ui
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user