[gtk+] spinbutton testcase
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinbutton testcase
- Date: Tue, 5 Jul 2011 20:25:54 +0000 (UTC)
commit 743cb1fc967cdccf0a7a78bb4199854db721f6f3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 22 23:20:11 2011 -0400
spinbutton testcase
tests/a11y/Makefile.am | 3 +-
tests/a11y/entries.txt | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
tests/a11y/entries.ui | 32 ++++++++++++++
3 files changed, 140 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index b430109..b5133fc 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -64,4 +64,5 @@ EXTRA_DIST += \
calendar.ui calendar.txt \
statusbar.ui statusbar.txt \
paned.ui paned.txt \
- iconview.ui iconview.txt
+ iconview.ui iconview.txt \
+ entries.ui entries.txt
diff --git a/tests/a11y/entries.txt b/tests/a11y/entries.txt
new file mode 100644
index 0000000..7d7c8bc
--- /dev/null
+++ b/tests/a11y/entries.txt
@@ -0,0 +1,106 @@
+window1
+ "window"
+ index: 0
+ state: enabled resizable sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: window
+ alpha: 1
+ box1
+ "filler"
+ parent: window1
+ index: 0
+ state: enabled horizontal sensitive
+ toolkit: gail
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ entry1
+ "text"
+ parent: box1
+ index: 0
+ state: editable enabled focusable sensitive single-line visible
+ toolkit: gail
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: text
+ 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>
+ <AtkAction>
+ action 0 name: activate
+ spinbutton1
+ "spin button"
+ parent: box1
+ index: 1
+ state: editable enabled focusable sensitive single-line visible
+ toolkit: gail
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text:
+ character count: 0
+ 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>
+ <AtkAction>
+ action 0 name: activate
+ <AtkValue>
+ minimum value: 0.500000
+ maximum value: 99.500000
+ current value: 45.500000
+ minimum increment: 0.500000
diff --git a/tests/a11y/entries.ui b/tests/a11y/entries.ui
new file mode 100644
index 0000000..28d072a
--- /dev/null
+++ b/tests/a11y/entries.ui
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="lower">0.5</property>
+ <property name="upper">99.5</property>
+ <property name="page-size">0</property>
+ <property name="value">45.5</property>
+ <property name="step-increment">0.5</property>
+ <property name="page-increment">5.0</property>
+ </object>
+ <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="GtkEntry" id="entry1">
+ <property name="text" translatable="yes">text</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="spinbutton1">
+ <property name="adjustment">adjustment1</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]