gtk/testsuite/a11y/buttons.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

158 lines
3.7 KiB
Plaintext

window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
window-type: normal
<AtkComponent>
layer: window
alpha: 1
grid1
"panel"
parent: window1
index: 0
state: enabled horizontal sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
button1
"toggle button"
parent: grid1
index: 0
name: Hello World!
state: checked enabled focusable focused sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button2
"check box"
parent: grid1
index: 1
name: Hello World!
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button3
"radio button"
parent: grid1
index: 2
name: Hello World!
member-of: button4
button3
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button4
"radio button"
parent: grid1
index: 3
name: Hello World!
member-of: button4
button3
state: checked enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button5
"toggle button"
parent: grid1
index: 4
state: checked enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkAction>
action 0 name: toggle
action 0 description: Toggles the switch
button6
"toggle button"
parent: grid1
index: 5
name: Test switch
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkAction>
action 0 name: toggle
action 0 description: Toggles the switch
button7
"push button"
parent: grid1
index: 6
name: Text Button
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button8
"push button"
parent: grid1
index: 7
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
button9
"push button"
parent: grid1
index: 8
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button