Fix a few css/a11y test cases

They were broken because of missing -icon-stock properties in GtkEntry
and GtkButton not creating an adjustment child anymore.
This commit is contained in:
Timm Bäder 2016-10-03 17:54:51 +02:00 committed by Benjamin Otte
parent 7f79a3fade
commit 5d3a5ffdfb
6 changed files with 17 additions and 203 deletions

View File

@ -269,6 +269,7 @@ window1
unnamed-GtkEntryIconAccessible-0
"icon"
parent: entry3
name: edit-undo
state: enabled sensitive visible
<AtkComponent>
layer: widget
@ -278,6 +279,7 @@ window1
unnamed-GtkEntryIconAccessible-1
"icon"
parent: entry3
name: edit-redo
state: enabled sensitive visible
<AtkComponent>
layer: widget

View File

@ -57,8 +57,8 @@
<object class="GtkEntry" id="entry3">
<property name="text" translatable="yes">icons</property>
<property name="visible">True</property>
<property name="primary-icon-stock">stock1</property>
<property name="secondary-icon-stock">stock2</property>
<property name="primary-icon-name">edit-undo</property>
<property name="secondary-icon-name">edit-redo</property>
</object>
</child>
<child>

View File

@ -40,121 +40,10 @@ window1
action 0 description: Clicks the menuitem
action 0 keybinding: <Alt>f;<Alt>f;
<AtkSelection>
imagemenuitem1
"menu item"
parent: menuitem1
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
action 0 keybinding: n;<Alt>f:n;
<AtkSelection>
imagemenuitem2
"menu"
parent: menuitem1
index: 1
name: Open
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
action 0 keybinding: o;<Alt>f:o;
<AtkSelection>
radiomenuitem1
"radio menu item"
parent: imagemenuitem2
index: 0
name: One
member-of: radiomenuitem3
radiomenuitem2
radiomenuitem1
state: checked enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
<AtkSelection>
radiomenuitem2
"radio menu item"
parent: imagemenuitem2
index: 1
name: Two
member-of: radiomenuitem3
radiomenuitem2
radiomenuitem1
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
<AtkSelection>
radiomenuitem3
"radio menu item"
parent: imagemenuitem2
index: 2
name: Three
member-of: radiomenuitem3
radiomenuitem2
radiomenuitem1
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
<AtkSelection>
imagemenuitem3
"menu item"
parent: menuitem1
index: 2
name: Save
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
action 0 keybinding: s;<Alt>f:s;
<AtkSelection>
imagemenuitem4
"menu item"
parent: menuitem1
index: 3
name: Save As
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
layer: popup
alpha: 1
<AtkAction>
action 0 name: click
action 0 description: Clicks the menuitem
action 0 keybinding: a;<Alt>f:a;
<AtkSelection>
separatormenuitem1
"separator"
parent: menuitem1
index: 4
index: 0
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
@ -165,7 +54,7 @@ window1
checkmenuitem1
"check menu item"
parent: menuitem1
index: 5
index: 1
name: awesome
state: selectable sensitive visible indeterminate
toolkit: gtk
@ -179,7 +68,7 @@ window1
separatormenuitem2
"separator"
parent: menuitem1
index: 6
index: 2
state: enabled selectable sensitive visible
toolkit: gtk
<AtkComponent>
@ -190,7 +79,7 @@ window1
imagemenuitem5
"menu item"
parent: menuitem1
index: 7
index: 3
name: Quit
state: enabled selectable sensitive visible
toolkit: gtk

View File

@ -18,81 +18,6 @@
<object class="GtkMenu" id="menu1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkMenuItem" id="imagemenuitem1">
<property name="label" translatable="yes">_New</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="imagemenuitem2">
<property name="label" translatable="yes">_Open</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<child type="submenu">
<object class="GtkMenu" id="menu4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkRadioMenuItem" id="radiomenuitem1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="label" translatable="yes">One</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_as_radio">True</property>
</object>
</child>
<child>
<object class="GtkRadioMenuItem" id="radiomenuitem2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="label" translatable="yes">Two</property>
<property name="use_underline">True</property>
<property name="draw_as_radio">True</property>
<property name="group">radiomenuitem1</property>
</object>
</child>
<child>
<object class="GtkRadioMenuItem" id="radiomenuitem3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="label" translatable="yes">Three</property>
<property name="use_underline">True</property>
<property name="draw_as_radio">True</property>
<property name="group">radiomenuitem1</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuItem" id="imagemenuitem3">
<property name="label" translatable="yes">_Save</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem4">
<property name="label" translatable="yes">Save _As</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="separatormenuitem1">
<property name="visible">True</property>
@ -151,7 +76,7 @@
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem7">
<object class="GtkMenuItem" id="imagemenuitem7">
<property name="label" translatable="yes">_Copy</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
@ -160,7 +85,7 @@
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem8">
<object class="GtkMenuItem" id="imagemenuitem8">
<property name="label" translatable="yes">_Paste</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
@ -169,7 +94,7 @@
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem9">
<object class="GtkMenuItem" id="imagemenuitem9">
<property name="label" translatable="yes">_Delete</property>
<property name="visible">True</property>
<property name="can_focus">False</property>

View File

@ -19,10 +19,8 @@
button.text-button:dir(ltr)
label:dir(ltr)
button.image-button:dir(ltr)
widget:dir(ltr)
box.horizontal:dir(ltr)
image:dir(ltr)
box.horizontal:dir(ltr)
image:dir(ltr)
button.image-button:dir(ltr)
widget:dir(ltr)
box.horizontal:dir(ltr)
image:dir(ltr)
box.horizontal:dir(ltr)
image:dir(ltr)

View File

@ -58,8 +58,8 @@
<object class="GtkEntry" id="entry3">
<property name="text" translatable="yes">icons</property>
<property name="visible">True</property>
<property name="primary-icon-stock">stock1</property>
<property name="secondary-icon-stock">stock2</property>
<property name="primary-icon-name">edit-copy</property>
<property name="secondary-icon-name">edit-paste</property>
</object>
</child>
<child>