From 3bc5ab4fcd3aa4f01b8a783eb6f0b084cacd53ec Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 3 Jan 2014 22:02:16 -0500 Subject: [PATCH] a11y tests: Add a test for multi-link labels --- testsuite/a11y/Makefile.am | 1 + testsuite/a11y/label.txt | 74 ++++++++++++++++++++++++++++++++++++++ testsuite/a11y/label.ui | 14 ++++++++ 3 files changed, 89 insertions(+) create mode 100644 testsuite/a11y/label.txt create mode 100644 testsuite/a11y/label.ui 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 + + 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 + + layer: widget + alpha: 1 + + text: Go to the GTK+ website or >google it + character count: 36 + caret offset: 0 + default attributes: bg-color: + bg-full-height: 0 + direction: + editable: false + family-name: + fg-color: + indent: 0 + invisible: false + justification: left + language: + left-margin: 0 + pixels-above-lines: 0 + pixels-below-lines: 0 + pixels-inside-wrap: 0 + right-margin: 0 + rise: 0 + scale: 1 + size: + stretch: + strikethrough: false + style: + underline: none + variant: + weight: + wrap-mode: word + + + start index: 10 + end index: 22 + anchors: http://www.gtk.org + + start index: 27 + end index: 36 + anchors: http://www.google.com + unnamed-GtkLabelAccessibleLinkImpl-0 + "link" + parent: label1 + state: enabled focusable multi-line sensitive + + + start index: 10 + end index: 22 + anchors: http://www.gtk.org + unnamed-GtkLabelAccessibleLinkImpl-1 + "link" + parent: label1 + state: enabled focusable multi-line sensitive + + + 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 @@ + + + + + False + popup + + + 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> + True + + + +