gtk/testsuite/a11y/label-static.txt
Alexander Larsson a1856c30d9 a11y tests: Ignore "active" flag on toplevel
All the a11y tests were failing for me with a window state diff
like this:

-  state: active enabled resizable sensitive showing visible
+  state: enabled resizable sensitive showing visible

I guess the windows in the CI always gets the focus, but not when
I run it here. Generally focus seems asynchronous and hard to rely
on so I just made the test ignore the active state on toplevels.
2020-02-04 15:01:48 +01:00

76 lines
2.3 KiB
Plaintext

window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
window-type: normal
<AtkComponent>
layer: window
alpha: 1
label1
"static"
parent: window1
index: 0
name: Go to the GTK+ website or >google it
state: enabled focusable focused multi-line sensitive showing visible has-tooltip
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 focused multi-line sensitive showing visible has-tooltip
<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 showing visible has-tooltip
<AtkHyperlinkImpl>
<AtkHyperlink>
start index: 27
end index: 36
anchors: http://www.google.com