diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-06-30 22:30:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-06-30 22:33:12 -0400 |
commit | 7702c6a5122771023ae984cae0792bf7e1782193 (patch) | |
tree | d0b0101238092add8b7fa7c4bb603ea6b41a5791 /testsuite | |
parent | 2941196f841e46fb0b1b3bfe9816c4b4048c0476 (diff) | |
download | gtk+-7702c6a5122771023ae984cae0792bf7e1782193.tar.gz |
Add GtkHeaderBar to the a11y tests
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/a11y/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/a11y/headerbar.txt | 49 | ||||
-rw-r--r-- | testsuite/a11y/headerbar.ui | 33 |
3 files changed, 83 insertions, 0 deletions
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am index ad0990c6fc..84a14d2953 100644 --- a/testsuite/a11y/Makefile.am +++ b/testsuite/a11y/Makefile.am @@ -75,6 +75,7 @@ testdata = \ combos.ui combos.txt \ listbox.ui listbox.txt \ stack.ui stack.txt \ + headerbar.ui headerbar.txt \ $(NULL) test_in_files = \ diff --git a/testsuite/a11y/headerbar.txt b/testsuite/a11y/headerbar.txt new file mode 100644 index 0000000000..f616839f75 --- /dev/null +++ b/testsuite/a11y/headerbar.txt @@ -0,0 +1,49 @@ +window1 + "window" + index: 0 + state: enabled resizable sensitive showing visible + toolkit: gtk + <AtkComponent> + layer: window + alpha: 1 + headerbar1 + "filler" + parent: window1 + index: 0 + state: enabled sensitive showing visible + toolkit: gtk + <AtkComponent> + layer: widget + alpha: 1 + button1 + "push button" + parent: headerbar1 + index: 0 + name: Yes + 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 + page2 + "push button" + parent: headerbar1 + index: 1 + name: No + 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/headerbar.ui b/testsuite/a11y/headerbar.ui new file mode 100644 index 0000000000..01216abd83 --- /dev/null +++ b/testsuite/a11y/headerbar.ui @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkWindow" id="window1"> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <object class="GtkHeaderBar" id="headerbar1"> + <property name="visible">True</property> + <property name="title">Title</property> + <property name="subtitle">Subtitle</property> + <child> + <object class="GtkButton" id="button1"> + <property name="label" translatable="yes">Yes</property> + <property name="visible">True</property> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkButton" id="page2"> + <property name="label" translatable="yes">No</property> + <property name="visible">True</property> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + </object> + </child> + </object> +</interface> |