testsuite: Clean up a11y menu tests
authorMatthias Clasen <mclasen@redhat.com>
Thu, 6 Feb 2020 22:12:34 +0000 (17:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 6 Feb 2020 22:21:06 +0000 (17:21 -0500)
We don't need some of the tests anymore, since
we just have popovers now.

testsuite/a11y/menubutton.txt
testsuite/a11y/menubutton.ui
testsuite/a11y/menubutton2.ui
testsuite/a11y/menubutton3.txt [deleted file]
testsuite/a11y/menubutton3.ui [deleted file]
testsuite/a11y/meson.build

index 59c99901ad880e88104a2b5b743e2231f57f8b80..ec6956665bd88e23c409f09a964570e5de41eed3 100644 (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>
index eb7d509d73988399c8e1d199aff94108933d0bd0..c48c253b29c67a9a2d462958705daf38e4f2f5e5 100644 (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>
index 30f6a82737292d77b8374285fbf96aeb25f9251c..97c31b11ae144e14ee225cc21ef035f131c3bbd2 100644 (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>
diff --git a/testsuite/a11y/menubutton3.txt b/testsuite/a11y/menubutton3.txt
deleted file mode 100644 (file)
index ec69566..0000000
+++ /dev/null
@@ -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
diff --git a/testsuite/a11y/menubutton3.ui b/testsuite/a11y/menubutton3.ui
deleted file mode 100644 (file)
index 30f6a82..0000000
+++ /dev/null
@@ -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>
index 6df0b25b2fc639fb3b2d7bb54eb80a1445070ec0..b782f45dc0ba753484e0c7136dbdb62fa28a84f1 100644 (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',
+  'about',
   'accessible-name',
-  'notebook',
-  'range',
-  'link',
-  'text',
+  'actionbar',
+  'assistant',
   'buttons',
+  'calendar',
   'colorchooser',
-  'about',
-  'messagedialog',
+  'combos',
+  'entries',
   'expander',
-  'assistant',
-  'pickers',
+  'headerbar',
+  'hello-world',
+  'iconview',
+  'infobar',
   'label',
+  'link',
+  'listbox',
   'lockbutton',
-  'spinner',
-  'progress',
-  'infobar',
-  'calendar',
-  'statusbar',
-  'paned',
-  'iconview',
-  'entries',
-  'scale-drawvalue',
-  'placeholder-text',
-  'menu',
   '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')