[accerciser] Fix for bug #663777 - WidgetHasText validator fails for widgets which don't need to implement getTex
- From: Javier HernÃndez AntÃnez <jhernandez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] Fix for bug #663777 - WidgetHasText validator fails for widgets which don't need to implement getTex
- Date: Mon, 28 May 2012 11:54:22 +0000 (UTC)
commit 778319d03fba9fd1071a2971cb1da1cdb3c5419f
Author: Brian Nitz <brian nitz oracle com>
Date: Mon May 28 13:53:59 2012 +0200
Fix for bug #663777 - WidgetHasText validator fails for widgets which don't need to implement getText()
plugindata/validate/basic.py | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/plugindata/validate/basic.py b/plugindata/validate/basic.py
index 8afcefa..a3e9c6b 100644
--- a/plugindata/validate/basic.py
+++ b/plugindata/validate/basic.py
@@ -67,17 +67,14 @@ class WidgetHasText(Validator):
'''
URL = URL_BASE + 'ITEM_ROLE_has_no_text_interface'
def condition(self, acc):
- return acc.getRole() in [ROLE_PUSH_BUTTON, ROLE_MENU, ROLE_MENU_ITEM,
- ROLE_CHECK_MENU_ITEM, ROLE_RADIO_MENU_ITEM,
- ROLE_TOGGLE_BUTTON, ROLE_STATUS_BAR,
+ return acc.getRole() in [
ROLE_TABLE_COLUMN_HEADER,
- ROLE_TABLE_ROW_HEADER, ROLE_SPIN_BUTTON,
- ROLE_SLIDER, ROLE_ROW_HEADER, ROLE_COLUMN_HEADER,
- ROLE_RADIO_BUTTON, ROLE_PASSWORD_TEXT,
+ ROLE_TABLE_ROW_HEADER,
+ ROLE_PASSWORD_TEXT,
ROLE_TEXT, ROLE_ENTRY, ROLE_PARAGRAPH,
- ROLE_PAGE_TAB, ROLE_LIST_ITEM, ROLE_LINK,
+ ROLE_LIST_ITEM,
ROLE_HEADING, ROLE_HEADER,
- ROLE_FOOTER, ROLE_CHECK_BOX, ROLE_CAPTION,
+ ROLE_FOOTER, ROLE_CAPTION,
ROLE_TERMINAL]
def before(self, acc, state, view):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]