summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-02-22 12:51:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-02-22 12:51:11 -0500
commit71e46a0b0e9968d3321c2f569aaea4a7fd35fde2 (patch)
treec858bc70e9baf559ff3c97ac705e9c8d70a2c075
parent18749136dad97a9cb8130fab392cde557d335a72 (diff)
downloadgtk+-71e46a0b0e9968d3321c2f569aaea4a7fd35fde2.tar.gz
a11y tests: Add a tests for menu buttons with popovers
This shows that popovers currently lack accessibility.
-rw-r--r--testsuite/a11y/Makefile.am1
-rw-r--r--testsuite/a11y/menubutton3.txt24
-rw-r--r--testsuite/a11y/menubutton3.ui22
3 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 74c9428bb9..1176e712ad 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -75,6 +75,7 @@ testdata = \
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 \
diff --git a/testsuite/a11y/menubutton3.txt b/testsuite/a11y/menubutton3.txt
new file mode 100644
index 0000000000..d61eb723cf
--- /dev/null
+++ b/testsuite/a11y/menubutton3.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/menubutton3.ui b/testsuite/a11y/menubutton3.ui
new file mode 100644
index 0000000000..15c462c829
--- /dev/null
+++ b/testsuite/a11y/menubutton3.ui
@@ -0,0 +1,22 @@
+<?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>
+ <property name="use-popover">True</property>
+ </object>
+ </child>
+ </object>
+</interface>