orca r3667 - in trunk: . src/orca test/keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3667 - in trunk: . src/orca test/keystrokes/firefox
- Date: Sat, 1 Mar 2008 21:51:24 +0000 (GMT)
Author: joanied
Date: Sat Mar 1 21:51:23 2008
New Revision: 3667
URL: http://svn.gnome.org/viewvc/orca?rev=3667&view=rev
Log:
* src/orca/Gecko.py:
test/keystrokes/firefox/label_guess_bugzilla_search.py:
test/keystrokes/firefox/line_nav_bugzilla_search.py:
Fix for bug #515804 - Whitespace needs to be removed from
speech and braille contexts in FF3.
Modified:
trunk/ChangeLog
trunk/src/orca/Gecko.py
trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py
trunk/test/keystrokes/firefox/line_nav_bugzilla_search.py
Modified: trunk/src/orca/Gecko.py
==============================================================================
--- trunk/src/orca/Gecko.py (original)
+++ trunk/src/orca/Gecko.py Sat Mar 1 21:51:23 2008
@@ -3538,6 +3538,26 @@
return True
+ def getDisplayedText(self, obj):
+ """Returns the text being displayed for an object.
+
+ Arguments:
+ - obj: the object
+
+ Returns the text being displayed for an object or None if there isn't
+ any text being shown. Overridden in this script because we have lots
+ of whitespace we need to remove.
+ """
+
+ displayedText = default.Script.getDisplayedText(self, obj)
+ if displayedText \
+ and not (obj.getState().contains(pyatspi.STATE_EDITABLE) \
+ or obj.getRole() in [pyatspi.ROLE_ENTRY,
+ pyatspi.ROLE_PASSWORD_TEXT]):
+ displayedText = displayedText.strip()
+
+ return displayedText
+
def getDisplayedLabel(self, obj):
"""If there is an object labelling the given object, return the
text being displayed for the object labelling this object.
Modified: trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py
==============================================================================
--- trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py (original)
+++ trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py Sat Mar 1 21:51:23 2008
@@ -84,7 +84,7 @@
["BRAILLE LINE: 'Admin List'",
" VISIBLE: 'Admin List', cursor=1",
"SPEECH OUTPUT: ''",
- "SPEECH OUTPUT: 'Classification: Admin multi-select List with 8 items'"]))
+ "SPEECH OUTPUT: 'Classification: Admin multi-select List with 8 items'"]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyPressAction(0, None, "KP_Insert"))
Modified: trunk/test/keystrokes/firefox/line_nav_bugzilla_search.py
==============================================================================
--- trunk/test/keystrokes/firefox/line_nav_bugzilla_search.py (original)
+++ trunk/test/keystrokes/firefox/line_nav_bugzilla_search.py Sat Mar 1 21:51:23 2008
@@ -47,9 +47,9 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"Line Down",
- ["BRAILLE LINE: 'New bug Link  Browse Link  Search Link  Reports Link  Account Link  Admin Link  Help Link Logged In joanmarie diggs gmail com | Log Out Link'",
- " VISIBLE: 'New bug Link  Browse Link Â', cursor=1",
- "SPEECH OUTPUT: 'New bug link  Browse link  Search link  Reports link  Account link  Admin link  Help link Logged In joanmarie diggs gmail com | Log Out link'"]))
+ ["BRAILLE LINE: 'New bug Link  Browse Link  Search Link  Reports Link  Account Link  Admin Link  Help Link Logged In joanmarie diggs gmail com | Log Out Link'",
+ " VISIBLE: 'New bug Link  Browse Link Â', cursor=1",
+ "SPEECH OUTPUT: 'New bug link  Browse link  Search link  Reports link  Account link  Admin link  Help link Logged In joanmarie diggs gmail com | Log Out link'"]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]