diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-03 22:02:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-04 10:54:03 -0500 |
commit | 3bc5ab4fcd3aa4f01b8a783eb6f0b084cacd53ec (patch) | |
tree | d01d9cfdae05d60531b4debafae8a7b68a9074f0 /testsuite | |
parent | 5845356d660352cc7d800fbf0caf106a51d722eb (diff) | |
download | gtk+-3bc5ab4fcd3aa4f01b8a783eb6f0b084cacd53ec.tar.gz |
a11y tests: Add a test for multi-link labels
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/a11y/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/a11y/label.txt | 74 | ||||
-rw-r--r-- | testsuite/a11y/label.ui | 14 |
3 files changed, 89 insertions, 0 deletions
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am index 3f08784743..1223cdd70d 100644 --- a/testsuite/a11y/Makefile.am +++ b/testsuite/a11y/Makefile.am @@ -60,6 +60,7 @@ testdata = \ expander.ui expander.txt \ assistant.ui assistant.txt \ pickers.ui pickers.txt \ + label.ui label.txt \ lockbutton.ui lockbutton.txt \ spinner.ui spinner.txt \ progress.ui progress.txt \ diff --git a/testsuite/a11y/label.txt b/testsuite/a11y/label.txt new file mode 100644 index 0000000000..0499b79b9a --- /dev/null +++ b/testsuite/a11y/label.txt @@ -0,0 +1,74 @@ +window1 + "window" + index: 0 + state: enabled resizable sensitive showing visible + toolkit: gtk + <AtkComponent> + layer: window + alpha: 1 + label1 + "label" + parent: window1 + index: 0 + name: Go to the GTK+ website or >google it + state: enabled focusable multi-line sensitive + toolkit: gtk + <AtkComponent> + layer: widget + alpha: 1 + <AtkText> + text: Go to the GTK+ website or >google it + character count: 36 + 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 + <AtkHypertext> + <AtkHyperlink> + start index: 10 + end index: 22 + anchors: http://www.gtk.org + <AtkHyperlink> + start index: 27 + end index: 36 + anchors: http://www.google.com + unnamed-GtkLabelAccessibleLinkImpl-0 + "link" + parent: label1 + state: enabled focusable multi-line sensitive + <AtkHyperlinkImpl> + <AtkHyperlink> + start index: 10 + end index: 22 + anchors: http://www.gtk.org + unnamed-GtkLabelAccessibleLinkImpl-1 + "link" + parent: label1 + state: enabled focusable multi-line sensitive + <AtkHyperlinkImpl> + <AtkHyperlink> + start index: 27 + end index: 36 + anchors: http://www.google.com diff --git a/testsuite/a11y/label.ui b/testsuite/a11y/label.ui new file mode 100644 index 0000000000..0ee6470b7b --- /dev/null +++ b/testsuite/a11y/label.ui @@ -0,0 +1,14 @@ + +<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="GtkLabel" id="label1"> + <property name="label">Go to the <a href="http://www.gtk.org" title="<i>Our</i> website">GTK+ website</a> or <small>><a href="http://www.google.com">google it</a></small></property> + <property name="use-markup">True</property> + </object> + </child> + </object> +</interface> |