[gtk+] Add combobox a11y tests



commit 2777078e21731634aa4df54f7f19543cf75e3beb
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 14 09:23:01 2011 -0500

    Add combobox a11y tests

 tests/a11y/Makefile.am |    3 +-
 tests/a11y/combos.txt  |  227 ++++++++++++++++++++++++++++++++++++++++++++++++
 tests/a11y/combos.ui   |   42 +++++++++
 3 files changed, 271 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index 89be4bf..6bc6267 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -62,4 +62,5 @@ EXTRA_DIST += \
 	entries.ui entries.txt \
 	scale-drawvalue.ui scale-drawvalue.txt \
 	placeholder-text.ui placeholder-text.txt \
-	menu.ui menu.txt
+	menu.ui menu.txt \
+	combos.ui combos.txt
diff --git a/tests/a11y/combos.txt b/tests/a11y/combos.txt
new file mode 100644
index 0000000..7e49ab5
--- /dev/null
+++ b/tests/a11y/combos.txt
@@ -0,0 +1,227 @@
+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
+    toolkit: gtk
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    label1
+      "label"
+      parent: box1
+      index: 0
+      name: Combo:
+      label-for: combo1
+      state: enabled multi-line sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Combo:
+      character count: 6
+      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
+    combo1
+      "combo box"
+      parent: box1
+      index: 1
+      labelled-by: label1
+      state: enabled sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkAction>
+      action 0 name: press
+      action 0 keybinding: <Alt>c
+      <AtkSelection>
+      unnamed-GtkMenuAccessible-0
+        "menu"
+        parent: combo1
+        index: 0
+        state: enabled selectable sensitive
+        toolkit: gtk
+        <AtkComponent>
+        layer: popup
+        alpha: 1
+        <AtkSelection>
+    combo2
+      "combo box"
+      parent: box1
+      index: 2
+      state: enabled sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkAction>
+      action 0 name: press
+      <AtkSelection>
+      unnamed-GtkMenuAccessible-1
+        "menu"
+        parent: combo2
+        index: 0
+        state: enabled selectable sensitive
+        toolkit: gtk
+        <AtkComponent>
+        layer: popup
+        alpha: 1
+        <AtkSelection>
+      
+        "text"
+        parent: combo2
+        index: 1
+        state: editable enabled focusable selectable sensitive single-line visible
+        toolkit: gtk
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: 
+        character count: 0
+        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
+        <AtkAction>
+        action 0 name: activate
+    combo3
+      "combo box"
+      parent: box1
+      index: 3
+      state: enabled sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkAction>
+      action 0 name: press
+      <AtkSelection>
+      unnamed-GtkMenuAccessible-2
+        "menu"
+        parent: combo3
+        index: 0
+        state: enabled selectable sensitive
+        toolkit: gtk
+        <AtkComponent>
+        layer: popup
+        alpha: 1
+        <AtkSelection>
+    combo4
+      "combo box"
+      parent: box1
+      index: 4
+      state: enabled sensitive visible
+      toolkit: gtk
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkAction>
+      action 0 name: press
+      <AtkSelection>
+      unnamed-GtkMenuAccessible-3
+        "menu"
+        parent: combo4
+        index: 0
+        state: enabled selectable sensitive
+        toolkit: gtk
+        <AtkComponent>
+        layer: popup
+        alpha: 1
+        <AtkSelection>
+      
+        "text"
+        parent: combo4
+        index: 1
+        state: editable enabled focusable selectable sensitive single-line visible
+        toolkit: gtk
+        <AtkComponent>
+        layer: widget
+        alpha: 1
+        <AtkText>
+        text: 
+        character count: 0
+        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
+        <AtkAction>
+        action 0 name: activate
diff --git a/tests/a11y/combos.ui b/tests/a11y/combos.ui
new file mode 100644
index 0000000..8ad2416
--- /dev/null
+++ b/tests/a11y/combos.ui
@@ -0,0 +1,42 @@
+<?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">
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="label">_Combo:</property>
+            <property name="use-underline">True</property>
+            <property name="mnemonic-widget">combo1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkComboBox" id="combo1">
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkComboBox" id="combo2">
+            <property name="visible">True</property>
+            <property name="has-entry">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkComboBoxText" id="combo3">
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkComboBoxText" id="combo4">
+            <property name="visible">True</property>
+            <property name="has-entry">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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