[gtk+] Add GtkHeaderBar to the a11y tests



commit 7702c6a5122771023ae984cae0792bf7e1782193
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 30 22:30:15 2013 -0400

    Add GtkHeaderBar to the a11y tests

 testsuite/a11y/Makefile.am   |    1 +
 testsuite/a11y/headerbar.txt |   49 ++++++++++++++++++++++++++++++++++++++++++
 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 ad0990c..84a14d2 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 0000000..f616839
--- /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 0000000..01216ab
--- /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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]