[gtk+] Add a placeholder-text test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add a placeholder-text test
- Date: Tue, 5 Jul 2011 20:35:48 +0000 (UTC)
commit 6087131ab6c9bbe84bcfa32c6056fc7af01e5e60
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 1 00:51:56 2011 -0400
Add a placeholder-text test
Contributed by Joanmarie Diggs.
tests/a11y/Makefile.am | 3 +-
tests/a11y/placeholder-text.txt | 140 +++++++++++++++++++++++++++++++++++++++
tests/a11y/placeholder-text.ui | 60 +++++++++++++++++
3 files changed, 202 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index d6c824f..8c74fb0 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -50,4 +50,5 @@ EXTRA_DIST += \
paned.ui paned.txt \
iconview.ui iconview.txt \
entries.ui entries.txt \
- scale-drawvalue.ui scale-drawvalue.txt
+ scale-drawvalue.ui scale-drawvalue.txt \
+ placeholder-text.ui placeholder-text.txt
diff --git a/tests/a11y/placeholder-text.txt b/tests/a11y/placeholder-text.txt
new file mode 100644
index 0000000..a995de2
--- /dev/null
+++ b/tests/a11y/placeholder-text.txt
@@ -0,0 +1,140 @@
+window1
+ "window"
+ index: 0
+ state: enabled resizable sensitive showing visible
+ toolkit: gail
+ <AtkComponent>
+ layer: window
+ alpha: 1
+ box1
+ "panel"
+ parent: window1
+ index: 0
+ state: enabled sensitive showing vertical visible
+ toolkit: gail
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ entry1
+ "text"
+ parent: box1
+ index: 0
+ state: editable enabled focusable sensitive showing single-line visible
+ toolkit: gail
+ placeholder-text: Subject or Addresses contain
+ <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
+ entry2
+ "text"
+ parent: box1
+ index: 1
+ state: editable enabled focusable sensitive showing single-line visible
+ toolkit: gail
+ placeholder-text: Message contains
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: Some text
+ character count: 9
+ 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
+ entry3
+ "text"
+ parent: box1
+ index: 2
+ state: editable enabled focusable sensitive showing single-line visible
+ toolkit: gail
+ placeholder-text: Body contains
+ <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/placeholder-text.ui b/tests/a11y/placeholder-text.ui
new file mode 100644
index 0000000..4657cb5
--- /dev/null
+++ b/tests/a11y/placeholder-text.ui
@@ -0,0 +1,60 @@
+<?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">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkEntry" id="entry1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â</property>
+ <property name="invisible_char_set">True</property>
+ <property name="placeholder_text">Subject or Addresses contain</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="entry2">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â</property>
+ <property name="text" translatable="yes">Some text</property>
+ <property name="invisible_char_set">True</property>
+ <property name="placeholder_text">Message contains</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="entry3">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="is_focus">True</property>
+ <property name="invisible_char">â</property>
+ <property name="invisible_char_set">True</property>
+ <property name="placeholder_text">Body contains</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]