Add GtkStack and GtkStackSwitcher to the a11y tests

This commit is contained in:
Matthias Clasen 2013-06-30 22:16:23 -04:00
parent e11039a973
commit 2941196f84
3 changed files with 148 additions and 0 deletions

View File

@ -74,6 +74,7 @@ testdata = \
menu.ui menu.txt \
combos.ui combos.txt \
listbox.ui listbox.txt \
stack.ui stack.txt \
$(NULL)
test_in_files = \

103
testsuite/a11y/stack.txt Normal file
View File

@ -0,0 +1,103 @@
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: window
alpha: 1
box1
"filler"
parent: window1
index: 0
state: enabled horizontal sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
stackswitcher1
"filler"
parent: box1
index: 0
state: enabled horizontal sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
unnamed-GtkRadioButtonAccessible-0
"radio button"
parent: stackswitcher1
index: 0
name: Page 1
member-of: unnamed-GtkRadioButtonAccessible-1
unnamed-GtkRadioButtonAccessible-0
state: armed 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
unnamed-GtkRadioButtonAccessible-1
"radio button"
parent: stackswitcher1
index: 1
name: Page 2
member-of: unnamed-GtkRadioButtonAccessible-1
unnamed-GtkRadioButtonAccessible-0
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
stack1
"panel"
parent: box1
index: 1
state: enabled sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
page1
"push button"
parent: stack1
index: 0
name: Yes
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
page2
"push button"
parent: stack1
index: 1
name: No
state: enabled focusable sensitive 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

44
testsuite/a11y/stack.ui Normal file
View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<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="GtkBox" id="box1">
<property name="visible">True</property>
<child>
<object class="GtkStackSwitcher" id="stackswitcher1">
<property name="visible">True</property>
<property name="stack">stack1</property>
</object>
</child>
<child>
<object class="GtkStack" id="stack1">
<property name="visible">True</property>
<child>
<object class="GtkButton" id="page1">
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
<packing>
<property name="name">page1</property>
<property name="title">Page 1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="page2">
<property name="label" translatable="yes">No</property>
<property name="visible">True</property>
</object>
<packing>
<property name="name">page2</property>
<property name="title">Page 2</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>