Add an infobar testcase

This commit is contained in:
Matthias Clasen 2011-06-21 23:45:46 -04:00
parent f2d6439bc7
commit 8aced27009
3 changed files with 102 additions and 1 deletions

View File

@ -40,4 +40,5 @@ EXTRA_DIST += \
pickers.ui pickers.txt \
lockbutton.ui lockbutton.txt \
spinner.ui spinner.txt \
progress.ui progress.txt
progress.ui progress.txt \
infobar.ui infobar.txt

76
tests/a11y/infobar.txt Normal file
View File

@ -0,0 +1,76 @@
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gail
<AtkComponent>
layer: window
alpha: 1
bar1
"filler"
parent: window1
index: 0
state: enabled horizontal sensitive showing visible
toolkit: gail
<AtkComponent>
layer: widget
alpha: 1
box1
"filler"
parent: bar1
index: 0
state: enabled horizontal sensitive showing visible
toolkit: gail
<AtkComponent>
layer: widget
alpha: 1
label1
"label"
parent: box1
index: 0
name: Some important info
state: enabled multi-line sensitive showing visible
toolkit: gail
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: Some important info
character count: 19
caret offset: 0
default attributes: left-margin: 0
right-margin: 0
indent: 0
invisible: false
editable: false
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
bg-full-height: 0
scale: 1
rise: 0
underline: none
strikethrough: false
bg-stipple: false
fg-stipple: false
fg-color: <omitted>
bg-color: <omitted>
wrap-mode: word
justification: left
size: <omitted>
weight: <omitted>
family-name: <omitted>
stretch: <omitted>
variant: <omitted>
style: <omitted>
language: <omitted>
direction: <omitted>
unnamed-GailBox-0
"filler"
parent: bar1
index: 1
state: enabled sensitive showing vertical visible
toolkit: gail
<AtkComponent>
layer: widget
alpha: 1

24
tests/a11y/infobar.ui Normal file
View File

@ -0,0 +1,24 @@
<?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="GtkInfoBar" id="bar1">
<property name="visible">True</property>
<property name="message-type">info</property>
<child internal-child="content_area">
<object class="GtkBox" id="box1">
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="label" translatable="yes">Some important info</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>