[gtk+] Add GtkStack and GtkStackSwitcher to the a11y tests



commit 2941196f841e46fb0b1b3bfe9816c4b4048c0476
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 30 22:16:23 2013 -0400

    Add GtkStack and GtkStackSwitcher to the a11y tests

 testsuite/a11y/Makefile.am |    1 +
 testsuite/a11y/stack.txt   |  103 ++++++++++++++++++++++++++++++++++++++++++++
 testsuite/a11y/stack.ui    |   44 +++++++++++++++++++
 3 files changed, 148 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index bab38fd..ad0990c 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -74,6 +74,7 @@ testdata = \
        menu.ui menu.txt \
        combos.ui combos.txt \
        listbox.ui listbox.txt \
+       stack.ui stack.txt \
        $(NULL)
 
 test_in_files = \
diff --git a/testsuite/a11y/stack.txt b/testsuite/a11y/stack.txt
new file mode 100644
index 0000000..67441be
--- /dev/null
+++ b/testsuite/a11y/stack.txt
@@ -0,0 +1,103 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gtk
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  box1
+    "filler"
+    parent: window1
+    index: 0
+    state: enabled horizontal sensitive showing visible
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    stackswitcher1
+      "filler"
+      parent: box1
+      index: 0
+      state: enabled horizontal sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      unnamed-GtkRadioButtonAccessible-0
+        "radio button"
+        parent: stackswitcher1
+        index: 0
+        name: Page 1
+        member-of: unnamed-GtkRadioButtonAccessible-1
+                   unnamed-GtkRadioButtonAccessible-0
+        state: armed checked 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
+      unnamed-GtkRadioButtonAccessible-1
+        "radio button"
+        parent: stackswitcher1
+        index: 1
+        name: Page 2
+        member-of: unnamed-GtkRadioButtonAccessible-1
+                   unnamed-GtkRadioButtonAccessible-0
+        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
+    stack1
+      "panel"
+      parent: box1
+      index: 1
+      state: enabled sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      page1
+        "push button"
+        parent: stack1
+        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: stack1
+        index: 1
+        name: No
+        state: enabled focusable sensitive 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/stack.ui b/testsuite/a11y/stack.ui
new file mode 100644
index 0000000..9b8ee38
--- /dev/null
+++ b/testsuite/a11y/stack.ui
@@ -0,0 +1,44 @@
+<?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="GtkBox" id="box1">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkStackSwitcher" id="stackswitcher1">
+            <property name="visible">True</property>
+            <property name="stack">stack1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkStack" id="stack1">
+            <property name="visible">True</property>
+            <child>
+              <object class="GtkButton" id="page1">
+                <property name="label" translatable="yes">Yes</property>
+                <property name="visible">True</property>
+              </object>
+              <packing>
+                <property name="name">page1</property>
+                <property name="title">Page 1</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="name">page2</property>
+                <property name="title">Page 2</property>
+              </packing>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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