[gtk+] Add a lockbutton testcase



commit 96d5ea96fd587f256ead5fc5ce76c9f2be6c63d4
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 21 23:34:38 2011 -0400

    Add a lockbutton testcase

 tests/a11y/Makefile.am    |    3 +-
 tests/a11y/lockbutton.txt |  112 +++++++++++++++++++++++++++++++++++++++++++++
 tests/a11y/lockbutton.ui  |   13 +++++
 3 files changed, 127 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index 1b38420..2f4f4ab 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -37,4 +37,5 @@ EXTRA_DIST += \
 	messagedialog.ui messagedialog.txt \
 	expander.ui expander.txt \
 	assistant.ui assistant.txt \
-	pickers.ui pickers.txt
+	pickers.ui pickers.txt \
+	lockbutton.ui lockbutton.txt
diff --git a/tests/a11y/lockbutton.txt b/tests/a11y/lockbutton.txt
new file mode 100644
index 0000000..208ac56
--- /dev/null
+++ b/tests/a11y/lockbutton.txt
@@ -0,0 +1,112 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gail
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  button1
+    "push button"
+    parent: window1
+    index: 0
+    description: Dialog is unlocked.
+Click to prevent further changes
+    state: enabled focusable sensitive showing visible
+    toolkit: gail
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    <AtkText>
+    text: (null)
+    character count: 0
+    caret offset: 0
+    <AtkImage>
+    image size: 16 x 16
+    image description: (null)
+    <AtkAction>
+    action 0 name: click
+    action 1 name: press
+    action 2 name: release
+    Lock
+      "label"
+      parent: button1
+      index: 0
+      name: Lock
+      state: enabled multi-line sensitive showing visible
+      toolkit: gail
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Lock
+      character count: 4
+      caret offset: 0
+      default attributes: left-margin: 0
+                          right-margin: 0
+                          indent: 0
+                          invisible: false
+                          editable: false
+                          pixels-above-lines: 0
+                          pixels-below-lines: 0
+                          pixels-inside-wrap: 0
+                          bg-full-height: 0
+                          scale: 1
+                          rise: 0
+                          underline: none
+                          strikethrough: false
+                          bg-stipple: false
+                          fg-stipple: false
+                          fg-color: <omitted>
+                          bg-color: <omitted>
+                          wrap-mode: word
+                          justification: left
+                          size: <omitted>
+                          weight: <omitted>
+                          family-name: <omitted>
+                          stretch: <omitted>
+                          variant: <omitted>
+                          style: <omitted>
+                          language: <omitted>
+                          direction: <omitted>
+    Unlock
+      "label"
+      parent: button1
+      index: 1
+      name: Unlock
+      state: enabled multi-line sensitive
+      toolkit: gail
+      <AtkComponent>
+      layer: widget
+      alpha: 1
+      <AtkText>
+      text: Unlock
+      character count: 6
+      caret offset: 0
+      default attributes: left-margin: 0
+                          right-margin: 0
+                          indent: 0
+                          invisible: false
+                          editable: false
+                          pixels-above-lines: 0
+                          pixels-below-lines: 0
+                          pixels-inside-wrap: 0
+                          bg-full-height: 0
+                          scale: 1
+                          rise: 0
+                          underline: none
+                          strikethrough: false
+                          bg-stipple: false
+                          fg-stipple: false
+                          fg-color: <omitted>
+                          bg-color: <omitted>
+                          wrap-mode: word
+                          justification: left
+                          size: <omitted>
+                          weight: <omitted>
+                          family-name: <omitted>
+                          stretch: <omitted>
+                          variant: <omitted>
+                          style: <omitted>
+                          language: <omitted>
+                          direction: <omitted>
diff --git a/tests/a11y/lockbutton.ui b/tests/a11y/lockbutton.ui
new file mode 100644
index 0000000..7df14c8
--- /dev/null
+++ b/tests/a11y/lockbutton.ui
@@ -0,0 +1,13 @@
+<?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="GtkLockButton" id="button1">
+        <property name="visible">True</property>
+      </object>
+    </child>
+  </object>
+</interface>



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