summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-12-20 09:06:33 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-12-20 13:31:08 -0500
commit8a12a88b753e7001b3f0b186b9cd5f78e7945931 (patch)
tree2eabdf005d03a1a14302b99d7ec42def82455b70 /testsuite
parent2c007a869146cf307ea4b5b485a314e44f112e15 (diff)
downloadgtk+-8a12a88b753e7001b3f0b186b9cd5f78e7945931.tar.gz
Add a menubutton to the a11y tests
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/Makefile.am1
-rw-r--r--testsuite/a11y/menubutton.txt24
-rw-r--r--testsuite/a11y/menubutton.ui27
3 files changed, 52 insertions, 0 deletions
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 01e96e8554..3f08784743 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -72,6 +72,7 @@ testdata = \
scale-drawvalue.ui scale-drawvalue.txt \
placeholder-text.ui placeholder-text.txt \
menu.ui menu.txt \
+ menubutton.ui menubutton.txt \
combos.ui combos.txt \
listbox.ui listbox.txt \
stack.ui stack.txt \
diff --git a/testsuite/a11y/menubutton.txt b/testsuite/a11y/menubutton.txt
new file mode 100644
index 0000000000..d61eb723cf
--- /dev/null
+++ b/testsuite/a11y/menubutton.txt
@@ -0,0 +1,24 @@
+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
diff --git a/testsuite/a11y/menubutton.ui b/testsuite/a11y/menubutton.ui
new file mode 100644
index 0000000000..611fe99d89
--- /dev/null
+++ b/testsuite/a11y/menubutton.ui
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkMenu" id="menu">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkMenuItem" id="imagemenuitem">
+ <property name="label" translatable="yes">_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>
+ </object>
+ </child>
+ </object>
+ <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="popup">menu</property>
+ </object>
+ </child>
+ </object>
+</interface>