[gtk+] a11y tests: Add a test for GtkActionBar



commit ac50e4e9dfc67126fee159257e9e8e2d8c9e6284
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 22 12:02:30 2014 -0500

    a11y tests: Add a test for GtkActionBar

 testsuite/a11y/Makefile.am   |    1 +
 testsuite/a11y/actionbar.txt |   97 ++++++++++++++++++++++++++++++++++++++++++
 testsuite/a11y/actionbar.ui  |   55 ++++++++++++++++++++++++
 3 files changed, 153 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 1581055..5f109df 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -79,6 +79,7 @@ testdata = \
        stack.ui stack.txt \
        headerbar.ui headerbar.txt \
        tree.ui tree.txt \
+       actionbar.ui actionbar.txt \
        $(NULL)
 
 test_in_files = \
diff --git a/testsuite/a11y/actionbar.txt b/testsuite/a11y/actionbar.txt
new file mode 100644
index 0000000..7b1cdeb
--- /dev/null
+++ b/testsuite/a11y/actionbar.txt
@@ -0,0 +1,97 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gtk
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  actionbar
+    "panel"
+    parent: window1
+    index: 0
+    state: enabled sensitive showing visible
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    button1
+      "push button"
+      parent: center_box
+      index: 0
+      name: Start 1
+      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
+    button2
+      "push button"
+      parent: center_box
+      index: 1
+      name: Start 2
+      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
+    button5
+      "push button"
+      parent: center_box
+      index: 2
+      name: Center
+      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
+    button4
+      "push button"
+      parent: center_box
+      index: 3
+      name: End 2
+      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
+    button3
+      "push button"
+      parent: center_box
+      index: 4
+      name: End 1
+      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/actionbar.ui b/testsuite/a11y/actionbar.ui
new file mode 100644
index 0000000..b51c697
--- /dev/null
+++ b/testsuite/a11y/actionbar.ui
@@ -0,0 +1,55 @@
+
+<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="GtkActionBar" id="actionbar">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkButton" id="button1">
+            <property name="visible">True</property>
+            <property name="label">Start 1</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button2">
+            <property name="visible">True</property>
+            <property name="label">Start 2</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button3">
+            <property name="visible">True</property>
+            <property name="label">End 1</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="button4">
+            <property name="visible">True</property>
+            <property name="label">End 2</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child type="center">
+          <object class="GtkButton" id="button5">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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