a11y tests: Add a test for GtkActionBar
This commit is contained in:
@ -79,6 +79,7 @@ testdata = \
|
|||||||
stack.ui stack.txt \
|
stack.ui stack.txt \
|
||||||
headerbar.ui headerbar.txt \
|
headerbar.ui headerbar.txt \
|
||||||
tree.ui tree.txt \
|
tree.ui tree.txt \
|
||||||
|
actionbar.ui actionbar.txt \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
test_in_files = \
|
test_in_files = \
|
||||||
|
|||||||
97
testsuite/a11y/actionbar.txt
Normal file
97
testsuite/a11y/actionbar.txt
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
window1
|
||||||
|
"window"
|
||||||
|
index: 0
|
||||||
|
state: enabled resizable sensitive showing visible
|
||||||
|
toolkit: gtk
|
||||||
|
<AtkComponent>
|
||||||
|
layer: window
|
||||||
|
alpha: 1
|
||||||
|
actionbar
|
||||||
|
"panel"
|
||||||
|
parent: window1
|
||||||
|
index: 0
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gtk
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
button1
|
||||||
|
"push button"
|
||||||
|
parent: center_box
|
||||||
|
index: 0
|
||||||
|
name: Start 1
|
||||||
|
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
|
||||||
|
button2
|
||||||
|
"push button"
|
||||||
|
parent: center_box
|
||||||
|
index: 1
|
||||||
|
name: Start 2
|
||||||
|
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
|
||||||
|
button5
|
||||||
|
"push button"
|
||||||
|
parent: center_box
|
||||||
|
index: 2
|
||||||
|
name: Center
|
||||||
|
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
|
||||||
|
"push button"
|
||||||
|
parent: center_box
|
||||||
|
index: 3
|
||||||
|
name: End 2
|
||||||
|
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
|
||||||
|
"push button"
|
||||||
|
parent: center_box
|
||||||
|
index: 4
|
||||||
|
name: End 1
|
||||||
|
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
|
||||||
55
testsuite/a11y/actionbar.ui
Normal file
55
testsuite/a11y/actionbar.ui
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
|
||||||
|
<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="GtkActionBar" id="actionbar">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="button1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">Start 1</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">start</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="button2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">Start 2</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">start</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="button3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">End 1</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="button4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">End 2</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child type="center">
|
||||||
|
<object class="GtkButton" id="button5">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="label">Center</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
||||||
Reference in New Issue
Block a user