Advertisement
joanmarie

a11y new test

Jun 30th, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 8.78 KB | None | 0 0
  1. From 1c97e125550dea5068c95416251a2a4738c35f7b Mon Sep 17 00:00:00 2001
  2. From: Joanmarie Diggs <joanmarie.diggs@gmail.com>
  3. Date: Thu, 30 Jun 2011 08:38:58 -0400
  4. Subject: [PATCH] New a11y test: placeholder-text
  5.  
  6. ---
  7. tests/a11y/Makefile.am          |    3 +-
  8.  tests/a11y/placeholder-text.txt |  140 +++++++++++++++++++++++++++++++++++++++
  9.  tests/a11y/placeholder-text.ui  |   60 +++++++++++++++++
  10.  3 files changed, 202 insertions(+), 1 deletions(-)
  11.  create mode 100644 tests/a11y/placeholder-text.txt
  12.  create mode 100644 tests/a11y/placeholder-text.ui
  13.  
  14. diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
  15. index d6c824f..8c74fb0 100644
  16. --- a/tests/a11y/Makefile.am
  17. +++ b/tests/a11y/Makefile.am
  18. @@ -50,4 +50,5 @@ EXTRA_DIST += \
  19.     paned.ui paned.txt \
  20.     iconview.ui iconview.txt \
  21.     entries.ui entries.txt \
  22. -   scale-drawvalue.ui scale-drawvalue.txt
  23. +   scale-drawvalue.ui scale-drawvalue.txt \
  24. +   placeholder-text.ui placeholder-text.txt
  25. diff --git a/tests/a11y/placeholder-text.txt b/tests/a11y/placeholder-text.txt
  26. new file mode 100644
  27. index 0000000..1b4cfb6
  28. --- /dev/null
  29. +++ b/tests/a11y/placeholder-text.txt
  30. @@ -0,0 +1,140 @@
  31. +window1
  32. +  "window"
  33. +  index: 0
  34. +  state: enabled resizable sensitive showing visible
  35. +  toolkit: gail
  36. +  <AtkComponent>
  37. +  layer: window
  38. +  alpha: 1
  39. +  box1
  40. +    "filler"
  41. +    parent: window1
  42. +    index: 0
  43. +    state: enabled sensitive showing vertical visible
  44. +    toolkit: gail
  45. +    <AtkComponent>
  46. +    layer: widget
  47. +    alpha: 1
  48. +    entry1
  49. +      "text"
  50. +      parent: box1
  51. +      index: 0
  52. +      state: editable enabled focusable sensitive showing single-line visible
  53. +      toolkit: gail
  54. +      placeholder-text: Subject or Addresses contain
  55. +      <AtkComponent>
  56. +      layer: widget
  57. +      alpha: 1
  58. +      <AtkText>
  59. +      text:
  60. +      character count: 0
  61. +      caret offset: 0
  62. +      default attributes: bg-color: <omitted>
  63. +                          bg-full-height: 0
  64. +                          direction: <omitted>
  65. +                          editable: false
  66. +                          family-name: <omitted>
  67. +                          fg-color: <omitted>
  68. +                          indent: 0
  69. +                          invisible: false
  70. +                          justification: left
  71. +                          language: <omitted>
  72. +                          left-margin: 0
  73. +                          pixels-above-lines: 0
  74. +                          pixels-below-lines: 0
  75. +                          pixels-inside-wrap: 0
  76. +                          right-margin: 0
  77. +                          rise: 0
  78. +                          scale: 1
  79. +                          size: <omitted>
  80. +                          stretch: <omitted>
  81. +                          strikethrough: false
  82. +                          style: <omitted>
  83. +                          underline: none
  84. +                          variant: <omitted>
  85. +                          weight: <omitted>
  86. +                          wrap-mode: word
  87. +      <AtkAction>
  88. +      action 0 name: activate
  89. +    entry2
  90. +      "text"
  91. +      parent: box1
  92. +      index: 1
  93. +      state: editable enabled focusable sensitive showing single-line visible
  94. +      toolkit: gail
  95. +      placeholder-text: Message contains
  96. +      <AtkComponent>
  97. +      layer: widget
  98. +      alpha: 1
  99. +      <AtkText>
  100. +      text: Some text
  101. +      character count: 9
  102. +      caret offset: 0
  103. +      default attributes: bg-color: <omitted>
  104. +                          bg-full-height: 0
  105. +                          direction: <omitted>
  106. +                          editable: false
  107. +                          family-name: <omitted>
  108. +                          fg-color: <omitted>
  109. +                          indent: 0
  110. +                          invisible: false
  111. +                          justification: left
  112. +                          language: <omitted>
  113. +                          left-margin: 0
  114. +                          pixels-above-lines: 0
  115. +                          pixels-below-lines: 0
  116. +                          pixels-inside-wrap: 0
  117. +                          right-margin: 0
  118. +                          rise: 0
  119. +                          scale: 1
  120. +                          size: <omitted>
  121. +                          stretch: <omitted>
  122. +                          strikethrough: false
  123. +                          style: <omitted>
  124. +                          underline: none
  125. +                          variant: <omitted>
  126. +                          weight: <omitted>
  127. +                          wrap-mode: word
  128. +      <AtkAction>
  129. +      action 0 name: activate
  130. +    entry3
  131. +      "text"
  132. +      parent: box1
  133. +      index: 2
  134. +      state: editable enabled focusable sensitive showing single-line visible
  135. +      toolkit: gail
  136. +      placeholder-text: Body contains
  137. +      <AtkComponent>
  138. +      layer: widget
  139. +      alpha: 1
  140. +      <AtkText>
  141. +      text:
  142. +      character count: 0
  143. +      caret offset: 0
  144. +      default attributes: bg-color: <omitted>
  145. +                          bg-full-height: 0
  146. +                          direction: <omitted>
  147. +                          editable: false
  148. +                          family-name: <omitted>
  149. +                          fg-color: <omitted>
  150. +                          indent: 0
  151. +                          invisible: false
  152. +                          justification: left
  153. +                          language: <omitted>
  154. +                          left-margin: 0
  155. +                          pixels-above-lines: 0
  156. +                          pixels-below-lines: 0
  157. +                          pixels-inside-wrap: 0
  158. +                          right-margin: 0
  159. +                          rise: 0
  160. +                          scale: 1
  161. +                          size: <omitted>
  162. +                          stretch: <omitted>
  163. +                          strikethrough: false
  164. +                          style: <omitted>
  165. +                          underline: none
  166. +                          variant: <omitted>
  167. +                          weight: <omitted>
  168. +                          wrap-mode: word
  169. +      <AtkAction>
  170. +      action 0 name: activate
  171. diff --git a/tests/a11y/placeholder-text.ui b/tests/a11y/placeholder-text.ui
  172. new file mode 100644
  173. index 0000000..4657cb5
  174. --- /dev/null
  175. +++ b/tests/a11y/placeholder-text.ui
  176. @@ -0,0 +1,60 @@
  177. +<?xml version="1.0" encoding="UTF-8"?>
  178. +<interface>
  179. +  <!-- interface-requires gtk+ 3.0 -->
  180. +  <object class="GtkWindow" id="window1">
  181. +    <property name="can_focus">False</property>
  182. +    <property name="type">popup</property>
  183. +    <child>
  184. +      <object class="GtkBox" id="box1">
  185. +        <property name="visible">True</property>
  186. +        <property name="can_focus">False</property>
  187. +        <property name="orientation">vertical</property>
  188. +        <child>
  189. +          <object class="GtkEntry" id="entry1">
  190. +            <property name="visible">True</property>
  191. +            <property name="can_focus">True</property>
  192. +            <property name="invisible_char">●</property>
  193. +            <property name="invisible_char_set">True</property>
  194. +            <property name="placeholder_text">Subject or Addresses contain</property>
  195. +          </object>
  196. +          <packing>
  197. +            <property name="expand">False</property>
  198. +            <property name="fill">True</property>
  199. +            <property name="position">0</property>
  200. +          </packing>
  201. +        </child>
  202. +        <child>
  203. +          <object class="GtkEntry" id="entry2">
  204. +            <property name="visible">True</property>
  205. +            <property name="can_focus">True</property>
  206. +            <property name="invisible_char">●</property>
  207. +            <property name="text" translatable="yes">Some text</property>
  208. +            <property name="invisible_char_set">True</property>
  209. +            <property name="placeholder_text">Message contains</property>
  210. +          </object>
  211. +          <packing>
  212. +            <property name="expand">False</property>
  213. +            <property name="fill">True</property>
  214. +            <property name="position">1</property>
  215. +          </packing>
  216. +        </child>
  217. +        <child>
  218. +          <object class="GtkEntry" id="entry3">
  219. +            <property name="visible">True</property>
  220. +            <property name="can_focus">True</property>
  221. +            <property name="has_focus">True</property>
  222. +            <property name="is_focus">True</property>
  223. +            <property name="invisible_char">●</property>
  224. +            <property name="invisible_char_set">True</property>
  225. +            <property name="placeholder_text">Body contains</property>
  226. +          </object>
  227. +          <packing>
  228. +            <property name="expand">False</property>
  229. +            <property name="fill">True</property>
  230. +            <property name="position">2</property>
  231. +          </packing>
  232. +        </child>
  233. +      </object>
  234. +    </child>
  235. +  </object>
  236. +</interface>
  237. --
  238. 1.7.5.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement