testsuite: Clean up a11y menu tests

We don't need some of the tests anymore, since
we just have popovers now.
This commit is contained in:
Matthias Clasen 2020-02-06 17:12:34 -05:00
parent b916723baf
commit 048effdc5a
6 changed files with 63 additions and 169 deletions

View File

@ -25,16 +25,3 @@ window1
<AtkComponent>
layer: widget
alpha: 1
imagemenuitem
"menu item"
parent: menu
index: 0
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
<AtkSelection>

View File

@ -2,11 +2,9 @@
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkPopover" id="menu">
<property name="visible">True</property>
<child>
<object class="GtkButton" id="button">
<property name="label" translatable="yes">_New</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
</object>
</child>
@ -15,9 +13,8 @@
<property name="can_focus">False</property>
<child>
<object class="GtkMenuButton" id="menubutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="popup">menu</property>
<property name="popover">menu</property>
</object>
</child>
</object>

View File

@ -12,7 +12,6 @@
<property name="can_focus">False</property>
<child>
<object class="GtkMenuButton" id="menubutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="menu-model">menu</property>
</object>

View File

@ -1,27 +0,0 @@
window1
"frame"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
window-type: normal
<AtkComponent>
layer: window
alpha: 1
unnamed-GtkContainerAccessible-0
"panel"
parent: window1
state: enabled sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
menubutton
"toggle button"
parent: window1
index: 0
name: Menu
state: enabled focusable focused sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<menu id="menu">
<section>
<item>
<attribute name="label">New</attribute>
</item>
</section>
</menu>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
<object class="GtkMenuButton" id="menubutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="menu-model">menu</property>
</object>
</child>
</object>
</interface>

View File

@ -2,43 +2,41 @@ testexecdir = join_paths(installed_test_bindir, 'a11y')
testdatadir = join_paths(installed_test_datadir, 'a11y')
a11y_state_tests = [
'hello-world',
'mnemonic',
'accessible-name',
'notebook',
'range',
'link',
'text',
'buttons',
'colorchooser',
'about',
'messagedialog',
'expander',
'accessible-name',
'actionbar',
'assistant',
'pickers',
'label',
'lockbutton',
'spinner',
'progress',
'infobar',
'buttons',
'calendar',
'statusbar',
'paned',
'iconview',
'colorchooser',
'combos',
'entries',
'scale-drawvalue',
'placeholder-text',
'menu',
'expander',
'headerbar',
'hello-world',
'iconview',
'infobar',
'label',
'link',
'listbox',
'lockbutton',
'menubutton',
'menubutton2',
'menubutton3',
'combos',
'listbox',
'messagedialog',
'mnemonic',
'notebook',
'paned',
'pickers',
'placeholder-text',
'progress',
'range',
'scale-drawvalue',
'spinner',
'statusbar',
'stack',
'headerbar',
'tree',
'actionbar',
'text',
'tooltips',
'tree',
]
a11y_dump_bin = executable('accessibility-dump',
@ -111,80 +109,41 @@ a11y_installed_tests = [
]
installed_test_data = [
'hello-world.ui',
'hello-world.txt',
'mnemonic.ui',
'mnemonic.txt',
'accessible-name.ui',
'accessible-name.txt',
'notebook.ui',
'notebook.txt',
'range.ui',
'range.txt',
'link.ui',
'link.txt',
'text.ui',
'text.txt',
'buttons.ui',
'buttons.txt',
'colorchooser.ui',
'colorchooser.txt',
'about.ui',
'about.txt',
'messagedialog.ui',
'messagedialog.txt',
'expander.ui',
'expander.txt',
'assistant.ui',
'assistant.txt',
'pickers.ui',
'pickers.txt',
'label.ui',
'label.txt',
'lockbutton.ui',
'lockbutton.txt',
'spinner.ui',
'spinner.txt',
'progress.ui',
'progress.txt',
'infobar.ui',
'infobar.txt',
'calendar.ui',
'calendar.txt',
'statusbar.ui',
'statusbar.txt',
'paned.ui',
'paned.txt',
'iconview.ui',
'iconview.txt',
'entries.ui',
'entries.txt',
'scale-drawvalue.ui',
'scale-drawvalue.txt',
'placeholder-text.ui',
'placeholder-text.txt',
'menu.ui',
'menu.txt',
'menubutton.ui',
'menubutton.txt',
'menubutton2.ui',
'menubutton2.txt',
'menubutton3.ui',
'menubutton3.txt',
'combos.ui',
'combos.txt',
'listbox.ui',
'listbox.txt',
'stack.ui',
'stack.txt',
'headerbar.ui',
'headerbar.txt',
'tree.ui',
'tree.txt',
'actionbar.ui',
'actionbar.txt',
'tooltips.ui',
'tooltips.txt',
'about.ui', 'about.txt',
'accessible-name.ui', 'accessible-name.txt',
'actionbar.ui', 'actionbar.txt',
'assistant.ui', 'assistant.txt',
'buttons.ui', 'buttons.txt',
'calendar.ui', 'calendar.txt',
'colorchooser.ui', 'colorchooser.txt',
'combos.ui', 'combos.txt',
'entries.ui', 'entries.txt',
'expander.ui', 'expander.txt',
'headerbar.ui', 'headerbar.txt',
'hello-world.ui', 'hello-world.txt',
'iconview.ui', 'iconview.txt',
'infobar.ui', 'infobar.txt',
'label.ui', 'label.txt',
'link.ui', 'link.txt',
'listbox.ui', 'listbox.txt',
'lockbutton.ui', 'lockbutton.txt',
'menubutton.ui', 'menubutton.txt',
'menubutton2.ui', 'menubutton2.txt',
'messagedialog.ui', 'messagedialog.txt',
'mnemonic.ui', 'mnemonic.txt',
'notebook.ui', 'notebook.txt',
'paned.ui', 'paned.txt',
'pickers.ui', 'pickers.txt',
'placeholder-text.ui', 'placeholder-text.txt',
'progress.ui', 'progress.txt',
'range.ui', 'range.txt',
'scale-drawvalue.ui', 'scale-drawvalue.txt',
'spinner.ui', 'spinner.txt',
'stack.ui', 'stack.txt',
'statusbar.ui', 'statusbar.txt',
'text.ui', 'text.txt',
'tooltips.ui', 'tooltips.txt',
'tree.ui', 'tree.txt',
]
if get_option('install-tests')