forked from AuroraMiddleware/gtk
Add a testcase for all the pickers
This commit is contained in:
parent
4573659deb
commit
3cc413e84f
@ -36,4 +36,5 @@ EXTRA_DIST += \
|
|||||||
appchooser.ui appchooser.txt \
|
appchooser.ui appchooser.txt \
|
||||||
messagedialog.ui messagedialog.txt \
|
messagedialog.ui messagedialog.txt \
|
||||||
expander.ui expander.txt \
|
expander.ui expander.txt \
|
||||||
assistant.ui assistant.txt
|
assistant.ui assistant.txt \
|
||||||
|
pickers.ui pickers.txt
|
||||||
|
322
tests/a11y/pickers.txt
Normal file
322
tests/a11y/pickers.txt
Normal file
@ -0,0 +1,322 @@
|
|||||||
|
window1
|
||||||
|
"window"
|
||||||
|
index: 0
|
||||||
|
state: enabled resizable sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: window
|
||||||
|
alpha: 1
|
||||||
|
grid1
|
||||||
|
"panel"
|
||||||
|
parent: window1
|
||||||
|
index: 0
|
||||||
|
state: enabled horizontal sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
button4
|
||||||
|
"filler"
|
||||||
|
parent: grid1
|
||||||
|
index: 0
|
||||||
|
state: enabled horizontal sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
(None)
|
||||||
|
"push button"
|
||||||
|
parent: button4
|
||||||
|
index: 0
|
||||||
|
name: (None)
|
||||||
|
state: enabled focusable sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: (None)
|
||||||
|
character count: 6
|
||||||
|
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>
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
unnamed-GailComboBox-0
|
||||||
|
"combo box"
|
||||||
|
parent: button4
|
||||||
|
index: 1
|
||||||
|
state: enabled sensitive
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: press
|
||||||
|
<AtkSelection>
|
||||||
|
selection count: 0
|
||||||
|
unnamed-GailMenu-1
|
||||||
|
"menu"
|
||||||
|
parent: unnamed-GailComboBox-0
|
||||||
|
index: 0
|
||||||
|
state: enabled selectable sensitive
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkSelection>
|
||||||
|
selection count: 0
|
||||||
|
unnamed-GailMenuItem-2
|
||||||
|
"menu item"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 0
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: (null)
|
||||||
|
character count: 0
|
||||||
|
caret offset: 0
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
File System
|
||||||
|
"menu item"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 1
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: File System
|
||||||
|
character count: 11
|
||||||
|
caret offset: 0
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
16 GB Encrypted
|
||||||
|
"menu item"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 2
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: 16 GB Encrypted
|
||||||
|
character count: 15
|
||||||
|
caret offset: 0
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
unnamed-GtkSeparatorMenuItemAccessible-3
|
||||||
|
"separator"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 3
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
unnamed-GtkSeparatorMenuItemAccessible-4
|
||||||
|
"separator"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 4
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
Other...
|
||||||
|
"menu item"
|
||||||
|
parent: unnamed-GailMenu-1
|
||||||
|
index: 5
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Other...
|
||||||
|
character count: 8
|
||||||
|
caret offset: 0
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
button3
|
||||||
|
"push button"
|
||||||
|
parent: grid1
|
||||||
|
index: 1
|
||||||
|
state: enabled focusable sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: (null)
|
||||||
|
character count: 0
|
||||||
|
caret offset: 0
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
Sans
|
||||||
|
"label"
|
||||||
|
parent: button3
|
||||||
|
index: 0
|
||||||
|
name: Sans
|
||||||
|
state: enabled multi-line sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Sans
|
||||||
|
character count: 4
|
||||||
|
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>
|
||||||
|
12
|
||||||
|
"label"
|
||||||
|
parent: button3
|
||||||
|
index: 1
|
||||||
|
name: 12
|
||||||
|
state: enabled multi-line sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: 12
|
||||||
|
character count: 2
|
||||||
|
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>
|
||||||
|
button2
|
||||||
|
"push button"
|
||||||
|
parent: grid1
|
||||||
|
index: 2
|
||||||
|
state: enabled focusable sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: (null)
|
||||||
|
character count: 0
|
||||||
|
caret offset: 0
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
button1
|
||||||
|
"combo box"
|
||||||
|
parent: grid1
|
||||||
|
index: 3
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: press
|
||||||
|
<AtkSelection>
|
||||||
|
selection count: 0
|
||||||
|
unnamed-GailMenu-5
|
||||||
|
"menu"
|
||||||
|
parent: button1
|
||||||
|
index: 0
|
||||||
|
state: enabled selectable sensitive
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkSelection>
|
||||||
|
selection count: 0
|
49
tests/a11y/pickers.ui
Normal file
49
tests/a11y/pickers.ui
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?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="GtkGrid" id="grid1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkAppChooserButton" id="button1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">0</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkColorButton" id="button2">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">1</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFontButton" id="button3">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">2</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFileChooserButton" id="button4">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="left_attach">3</property>
|
||||||
|
<property name="top_attach">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user