forked from AuroraMiddleware/gtk
a11y tests: Add a test for menubuttons with model
This commit is contained in:
parent
1de4c698cc
commit
349376f48f
@ -74,6 +74,7 @@ testdata = \
|
|||||||
placeholder-text.ui placeholder-text.txt \
|
placeholder-text.ui placeholder-text.txt \
|
||||||
menu.ui menu.txt \
|
menu.ui menu.txt \
|
||||||
menubutton.ui menubutton.txt \
|
menubutton.ui menubutton.txt \
|
||||||
|
menubutton2.ui menubutton2.txt \
|
||||||
combos.ui combos.txt \
|
combos.ui combos.txt \
|
||||||
listbox.ui listbox.txt \
|
listbox.ui listbox.txt \
|
||||||
stack.ui stack.txt \
|
stack.ui stack.txt \
|
||||||
|
38
testsuite/a11y/menubutton2.txt
Normal file
38
testsuite/a11y/menubutton2.txt
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
window1
|
||||||
|
"frame"
|
||||||
|
index: 0
|
||||||
|
state: enabled resizable sensitive showing visible
|
||||||
|
toolkit: gtk
|
||||||
|
<AtkComponent>
|
||||||
|
layer: window
|
||||||
|
alpha: 1
|
||||||
|
menubutton
|
||||||
|
"toggle button"
|
||||||
|
parent: window1
|
||||||
|
index: 0
|
||||||
|
name: Menu
|
||||||
|
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
|
||||||
|
unnamed-GtkCheckMenuItemAccessible-0
|
||||||
|
"menu item"
|
||||||
|
parent: unnamed-GtkMenuAccessible-1
|
||||||
|
index: 0
|
||||||
|
name: New
|
||||||
|
state: enabled selectable sensitive visible
|
||||||
|
toolkit: gtk
|
||||||
|
<AtkComponent>
|
||||||
|
layer: popup
|
||||||
|
alpha: 1
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 0 description: Clicks the menuitem
|
||||||
|
<AtkSelection>
|
21
testsuite/a11y/menubutton2.ui
Normal file
21
testsuite/a11y/menubutton2.ui
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
|
<menu id="menu">
|
||||||
|
<section>
|
||||||
|
<item>
|
||||||
|
<attribute name="label">New</attribute>
|
||||||
|
</item>
|
||||||
|
</section>
|
||||||
|
</menu>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton" id="menubutton">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="menu-model">menu</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user