Add GtkHeaderBar to the a11y tests

This commit is contained in:
Matthias Clasen 2013-06-30 22:30:15 -04:00
parent 2941196f84
commit 7702c6a512
3 changed files with 83 additions and 0 deletions

View File

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

View File

@ -0,0 +1,49 @@
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: window
alpha: 1
headerbar1
"filler"
parent: window1
index: 0
state: enabled sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
button1
"push button"
parent: headerbar1
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: headerbar1
index: 1
name: No
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

View File

@ -0,0 +1,33 @@
<?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="GtkHeaderBar" id="headerbar1">
<property name="visible">True</property>
<property name="title">Title</property>
<property name="subtitle">Subtitle</property>
<child>
<object class="GtkButton" id="button1">
<property name="label" translatable="yes">Yes</property>
<property name="visible">True</property>
</object>
<packing>
<property name="pack-type">start</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="pack-type">end</property>
</packing>
</child>
</object>
</child>
</object>
</interface>