Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 1c97e125550dea5068c95416251a2a4738c35f7b Mon Sep 17 00:00:00 2001
- From: Joanmarie Diggs <joanmarie.diggs@gmail.com>
- Date: Thu, 30 Jun 2011 08:38:58 -0400
- Subject: [PATCH] New a11y test: placeholder-text
- ---
- tests/a11y/Makefile.am | 3 +-
- tests/a11y/placeholder-text.txt | 140 +++++++++++++++++++++++++++++++++++++++
- tests/a11y/placeholder-text.ui | 60 +++++++++++++++++
- 3 files changed, 202 insertions(+), 1 deletions(-)
- create mode 100644 tests/a11y/placeholder-text.txt
- create mode 100644 tests/a11y/placeholder-text.ui
- 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..1b4cfb6
- --- /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
- + "filler"
- + 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>
- --
- 1.7.5.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement