summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-22 12:13:21 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-22 12:31:19 -0500
commit349376f48f240fb7188d238769c7f641d1b7a490 (patch)
treea2cb2ea7101537a5398ea2cf749be2e8aa7aa092 /testsuite
parent1de4c698cc1adce801e991755fce9af5c58aef13 (diff)
downloadgtk+-349376f48f240fb7188d238769c7f641d1b7a490.tar.gz
a11y tests: Add a test for menubuttons with model
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/Makefile.am1
-rw-r--r--testsuite/a11y/menubutton2.txt38
-rw-r--r--testsuite/a11y/menubutton2.ui21
3 files changed, 60 insertions, 0 deletions
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 5f109dfd47..74c9428bb9 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -74,6 +74,7 @@ testdata = \
placeholder-text.ui placeholder-text.txt \
menu.ui menu.txt \
menubutton.ui menubutton.txt \
+ menubutton2.ui menubutton2.txt \
combos.ui combos.txt \
listbox.ui listbox.txt \
stack.ui stack.txt \
diff --git a/testsuite/a11y/menubutton2.txt b/testsuite/a11y/menubutton2.txt
new file mode 100644
index 0000000000..dfcf4d523b
--- /dev/null
+++ b/testsuite/a11y/menubutton2.txt
@@ -0,0 +1,38 @@
+window1
+ "frame"
+ index: 0
+ state: enabled resizable sensitive showing visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: window
+ alpha: 1
+ menubutton
+ "toggle button"
+ parent: window1
+ index: 0
+ name: Menu
+ state: enabled focusable sensitive showing visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkImage>
+ image size: -1 x -1
+ image description: (null)
+ <AtkAction>
+ action 0 name: click
+ action 0 description: Clicks the button
+ unnamed-GtkCheckMenuItemAccessible-0
+ "menu item"
+ parent: unnamed-GtkMenuAccessible-1
+ index: 0
+ name: New
+ state: enabled selectable sensitive visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: popup
+ alpha: 1
+ <AtkAction>
+ action 0 name: click
+ action 0 description: Clicks the menuitem
+ <AtkSelection>
diff --git a/testsuite/a11y/menubutton2.ui b/testsuite/a11y/menubutton2.ui
new file mode 100644
index 0000000000..30f6a82737
--- /dev/null
+++ b/testsuite/a11y/menubutton2.ui
@@ -0,0 +1,21 @@
+<?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>