[gtk+] Add GtkListBox to the a11y tests



commit e11039a9732ad3db5a1b5aa803452b52f85070c6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 30 22:08:58 2013 -0400

    Add GtkListBox to the a11y tests

 testsuite/a11y/Makefile.am |    1 +
 testsuite/a11y/listbox.txt |  115 ++++++++++++++++++++++++++++++++++++++++++++
 testsuite/a11y/listbox.ui  |   25 ++++++++++
 3 files changed, 141 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 57d2e4a..bab38fd 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -73,6 +73,7 @@ testdata = \
        placeholder-text.ui placeholder-text.txt \
        menu.ui menu.txt \
        combos.ui combos.txt \
+       listbox.ui listbox.txt \
        $(NULL)
 
 test_in_files = \
diff --git a/testsuite/a11y/listbox.txt b/testsuite/a11y/listbox.txt
new file mode 100644
index 0000000..347a9a1
--- /dev/null
+++ b/testsuite/a11y/listbox.txt
@@ -0,0 +1,115 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gtk
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  box1
+    "list box"
+    parent: window1
+    index: 0
+    state: enabled sensitive showing visible manages-descendants
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    <AtkSelection>
+    selected children: unnamed-GtkContainerAccessible-0
+    unnamed-GtkContainerAccessible-0
+      "panel"
+      parent: box1
+      index: 0
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      row1
+        "label"
+        parent: unnamed-GtkContainerAccessible-0
+        index: 0
+        name: Row One
+        state: enabled multi-line sensitive showing visible
+        toolkit: gtk
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: Row One
+        character count: 7
+        caret offset: 0
+        default attributes: bg-color: <omitted>
+                            bg-full-height: 0
+                            direction: <omitted>
+                            editable: false
+                            family-name: <omitted>
+                            fg-color: <omitted>
+                            indent: 0
+                            invisible: false
+                            justification: left
+                            language: <omitted>
+                            left-margin: 0
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            right-margin: 0
+                            rise: 0
+                            scale: 1
+                            size: <omitted>
+                            stretch: <omitted>
+                            strikethrough: false
+                            style: <omitted>
+                            underline: none
+                            variant: <omitted>
+                            weight: <omitted>
+                            wrap-mode: word
+    unnamed-GtkContainerAccessible-1
+      "panel"
+      parent: box1
+      index: 1
+      state: enabled focusable sensitive showing visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      row2
+        "label"
+        parent: unnamed-GtkContainerAccessible-1
+        index: 0
+        name: Row Two
+        state: enabled multi-line sensitive showing visible
+        toolkit: gtk
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: Row Two
+        character count: 7
+        caret offset: 0
+        default attributes: bg-color: <omitted>
+                            bg-full-height: 0
+                            direction: <omitted>
+                            editable: false
+                            family-name: <omitted>
+                            fg-color: <omitted>
+                            indent: 0
+                            invisible: false
+                            justification: left
+                            language: <omitted>
+                            left-margin: 0
+                            pixels-above-lines: 0
+                            pixels-below-lines: 0
+                            pixels-inside-wrap: 0
+                            right-margin: 0
+                            rise: 0
+                            scale: 1
+                            size: <omitted>
+                            stretch: <omitted>
+                            strikethrough: false
+                            style: <omitted>
+                            underline: none
+                            variant: <omitted>
+                            weight: <omitted>
+                            wrap-mode: word
diff --git a/testsuite/a11y/listbox.ui b/testsuite/a11y/listbox.ui
new file mode 100644
index 0000000..b51669d
--- /dev/null
+++ b/testsuite/a11y/listbox.ui
@@ -0,0 +1,25 @@
+<?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="GtkListBox" id="box1">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkLabel" id="row1">
+            <property name="visible">True</property>
+            <property name="label">Row One</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="row2">
+            <property name="visible">True</property>
+            <property name="label">Row Two</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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