mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Add a test involving a selection
This commit is contained in:
parent
913c5241ae
commit
6641ae85ff
@ -24,4 +24,5 @@ accessibility_dump_SOURCES = \
|
||||
EXTRA_DIST += \
|
||||
hello-world.ui hello-world.txt \
|
||||
mnemonic.ui mnemonic.txt \
|
||||
accessible-name.ui accessible-name.txt
|
||||
accessible-name.ui accessible-name.txt \
|
||||
notebook.ui notebook.txt
|
||||
|
65
tests/a11y/notebook.txt
Normal file
65
tests/a11y/notebook.txt
Normal file
@ -0,0 +1,65 @@
|
||||
window1
|
||||
"window"
|
||||
index: 0
|
||||
state: enabled resizable sensitive showing visible
|
||||
toolkit: gail
|
||||
notebook1
|
||||
"page tab list"
|
||||
parent: window1
|
||||
index: 0
|
||||
state: enabled focusable sensitive showing visible
|
||||
toolkit: gail
|
||||
selection count: 1
|
||||
selected children: 0
|
||||
Tab 1
|
||||
"page tab"
|
||||
parent: notebook1
|
||||
index: 0
|
||||
name: Tab 1
|
||||
state: enabled multi-line selectable selected sensitive showing visible
|
||||
text: Tab 1
|
||||
character count: 5
|
||||
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:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||
page1
|
||||
"push button"
|
||||
index: 0
|
||||
name: Yes
|
||||
state: enabled focusable sensitive showing visible
|
||||
toolkit: gail
|
||||
text: Yes
|
||||
character count: 3
|
||||
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:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||
image size: 20 x 20
|
||||
image description: (null)
|
||||
action 0 name: click
|
||||
action 0 keybinding: <Alt>y
|
||||
action 1 name: press
|
||||
action 2 name: release
|
||||
Tab 2
|
||||
"page tab"
|
||||
parent: notebook1
|
||||
index: 1
|
||||
name: Tab 2
|
||||
state: enabled multi-line selectable sensitive showing visible
|
||||
text: Tab 2
|
||||
character count: 5
|
||||
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:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||
page2
|
||||
"push button"
|
||||
index: 1
|
||||
name: No
|
||||
state: enabled focusable sensitive visible
|
||||
toolkit: gail
|
||||
text: No
|
||||
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:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||
image size: 20 x 20
|
||||
image description: (null)
|
||||
action 0 name: click
|
||||
action 0 keybinding: <Alt>n
|
||||
action 1 name: press
|
||||
action 2 name: release
|
39
tests/a11y/notebook.ui
Normal file
39
tests/a11y/notebook.ui
Normal file
@ -0,0 +1,39 @@
|
||||
<?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="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="page1">
|
||||
<property name="label">gtk-yes</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab1">
|
||||
<property name="label" translatable="yes">Tab 1</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="page2">
|
||||
<property name="label">gtk-no</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel" id="tab2">
|
||||
<property name="label" translatable="yes">Tab 2</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user