[gtk+] Add a GtkProgressBar testcase



commit f2d6439bc76abf2f1ad15025704824313d98355a
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 21 23:41:29 2011 -0400

    Add a GtkProgressBar testcase

 tests/a11y/Makefile.am  |    3 ++-
 tests/a11y/progress.txt |   22 ++++++++++++++++++++++
 tests/a11y/progress.ui  |   16 ++++++++++++++++
 3 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index 62b86fc..d066f7f 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -39,4 +39,5 @@ EXTRA_DIST += \
 	assistant.ui assistant.txt \
 	pickers.ui pickers.txt \
 	lockbutton.ui lockbutton.txt \
-	spinner.ui spinner.txt
+	spinner.ui spinner.txt \
+	progress.ui progress.txt
diff --git a/tests/a11y/progress.txt b/tests/a11y/progress.txt
new file mode 100644
index 0000000..9f1c5d3
--- /dev/null
+++ b/tests/a11y/progress.txt
@@ -0,0 +1,22 @@
+window1
+  "window"
+  index: 0
+  state: enabled resizable sensitive showing visible
+  toolkit: gail
+  <AtkComponent>
+  layer: window
+  alpha: 1
+  progress1
+    "progress bar"
+    parent: window1
+    index: 0
+    state: enabled horizontal sensitive showing visible
+    toolkit: gail
+    <AtkComponent>
+    layer: widget
+    alpha: 1
+    <AtkValue>
+    minimum value: 0.000000
+    maximum value: 1.000000
+    current value: 0.500000
+    minimum increment: 0.000000
diff --git a/tests/a11y/progress.ui b/tests/a11y/progress.ui
new file mode 100644
index 0000000..f34c13b
--- /dev/null
+++ b/tests/a11y/progress.ui
@@ -0,0 +1,16 @@
+<?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="GtkProgressBar" id="progress1">
+        <property name="visible">True</property>
+        <property name="fraction">0.5</property>
+        <property name="text">Good progress!</property>
+        <property name="show-text">True</property>
+      </object>
+    </child>
+  </object>
+</interface>



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