diff options
author | Timm Bäder <mail@baedert.org> | 2016-10-03 17:54:51 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-16 18:17:21 +0200 |
commit | 5d3a5ffdfb8494e060dc47cc41ed8400a6b36447 (patch) | |
tree | 7927216be98e4c78f5d25459eb72e2ff340e1132 /testsuite/a11y | |
parent | 7f79a3fadeb748f1b545f1aa3daa77e0f5999892 (diff) | |
download | gtk+-5d3a5ffdfb8494e060dc47cc41ed8400a6b36447.tar.gz |
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.
Diffstat (limited to 'testsuite/a11y')
-rw-r--r-- | testsuite/a11y/entries.txt | 2 | ||||
-rw-r--r-- | testsuite/a11y/entries.ui | 4 | ||||
-rw-r--r-- | testsuite/a11y/menu.txt | 119 | ||||
-rw-r--r-- | testsuite/a11y/menu.ui | 81 |
4 files changed, 11 insertions, 195 deletions
diff --git a/testsuite/a11y/entries.txt b/testsuite/a11y/entries.txt index 7540854ae9..a7bf15ad77 100644 --- a/testsuite/a11y/entries.txt +++ b/testsuite/a11y/entries.txt @@ -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 diff --git a/testsuite/a11y/entries.ui b/testsuite/a11y/entries.ui index 280d3bc182..f9c34448ea 100644 --- a/testsuite/a11y/entries.ui +++ b/testsuite/a11y/entries.ui @@ -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> diff --git a/testsuite/a11y/menu.txt b/testsuite/a11y/menu.txt index 1bcc611a33..2d82317c15 100644 --- a/testsuite/a11y/menu.txt +++ b/testsuite/a11y/menu.txt @@ -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 diff --git a/testsuite/a11y/menu.ui b/testsuite/a11y/menu.ui index d4509c2085..c551e08d5f 100644 --- a/testsuite/a11y/menu.ui +++ b/testsuite/a11y/menu.ui @@ -19,81 +19,6 @@ <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> <property name="can_focus">False</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> |