orca r4414 - in trunk: . src/orca/scripts/toolkits/Gecko test/keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4414 - in trunk: . src/orca/scripts/toolkits/Gecko test/keystrokes/firefox
- Date: Fri, 9 Jan 2009 15:49:02 +0000 (UTC)
Author: joanied
Date: Fri Jan 9 15:49:02 2009
New Revision: 4414
URL: http://svn.gnome.org/viewvc/orca?rev=4414&view=rev
Log:
* test/keystrokes/firefox/line_nav_wiki.py:
test/keystrokes/firefox/line_nav_bug_547573.py:
test/keystrokes/firefox/line_nav_bugzilla_search.py:
test/keystrokes/firefox/line_nav_enter_bug.py:
test/keystrokes/firefox/xul_role_combo_box.py:
src/orca/scripts/toolkits/Gecko/script.py:
Fix for bug #567167 - Orca sometimes (re)announces that the
document frame has just received focus in Firefox 3.x.
Modified:
trunk/ChangeLog
trunk/src/orca/scripts/toolkits/Gecko/script.py
trunk/test/keystrokes/firefox/line_nav_bug_547573.py
trunk/test/keystrokes/firefox/line_nav_bugzilla_search.py
trunk/test/keystrokes/firefox/line_nav_enter_bug.py
trunk/test/keystrokes/firefox/line_nav_wiki.py
trunk/test/keystrokes/firefox/xul_role_combo_box.py
Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py Fri Jan 9 15:49:02 2009
@@ -1801,6 +1801,13 @@
speech.speak(message)
if finishedLoading:
+ # Store the document frame otherwise the first time it
+ # gains focus (e.g. the first time the user arrows off
+ # of a link into non-focusable text), onStateFocused
+ # will start chatting unnecessarily.
+ #
+ self._currentFrame = event.source
+
# We first try to figure out where the caret is on
# the newly loaded page. If it is on an editable
# object (e.g., a text entry), then we present just
Modified: trunk/test/keystrokes/firefox/line_nav_bug_547573.py
==============================================================================
--- trunk/test/keystrokes/firefox/line_nav_bug_547573.py (original)
+++ trunk/test/keystrokes/firefox/line_nav_bug_547573.py Fri Jan 9 15:49:02 2009
@@ -54,15 +54,8 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"2. Line Down",
- ["BUG? - For some reason we're acting as if the page had just loaded",
- "BRAILLE LINE: 'ÂÂsearch tips Search $l Submit Search Button Home Page Image $l'",
- " VISIBLE: 'ÂÂsearch tips Search $l Submit ', cursor=1",
- "BRAILLE LINE: 'Installation Notes'",
- " VISIBLE: 'Installation Notes', cursor=0",
- "BRAILLE LINE: 'ÂÂsearch tips Search $l Submit Search Button Home Page Image $l'",
+ ["BRAILLE LINE: 'ÂÂsearch tips Search $l Submit Search Button Home Page Image $l'",
" VISIBLE: 'ÂÂsearch tips Search $l Submit ', cursor=1",
- "SPEECH OUTPUT: ' search tips link  text Search Submit Search button Home Page link image'",
- "SPEECH OUTPUT: 'Installation Notes page'",
"SPEECH OUTPUT: ' search tips link  text Search Submit Search button Home Page link image'"]))
sequence.append(utils.StartRecordingAction())
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 Fri Jan 9 15:49:02 2009
@@ -58,15 +58,8 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"Line Down",
- ["BUG? - For some reason we're getting the page load information",
- "BRAILLE LINE: 'ÂShort Bug Search Form Complicated Bug Search Form Â'",
- " VISIBLE: 'ÂShort Bug Search Form Complicat', cursor=1",
- "BRAILLE LINE: 'Search for bugs'",
- " VISIBLE: 'Search for bugs', cursor=0",
- "BRAILLE LINE: 'ÂShort Bug Search Form Complicated Bug Search Form Â'",
+ ["BRAILLE LINE: 'ÂShort Bug Search Form Complicated Bug Search Form Â'",
" VISIBLE: 'ÂShort Bug Search Form Complicat', cursor=1",
- "SPEECH OUTPUT: 'Â Short Bug Search Form link Complicated Bug Search Form Â'",
- "SPEECH OUTPUT: 'Search for bugs page'",
"SPEECH OUTPUT: 'Â Short Bug Search Form link Complicated Bug Search Form Â'"]))
sequence.append(utils.StartRecordingAction())
Modified: trunk/test/keystrokes/firefox/line_nav_enter_bug.py
==============================================================================
--- trunk/test/keystrokes/firefox/line_nav_enter_bug.py (original)
+++ trunk/test/keystrokes/firefox/line_nav_enter_bug.py Fri Jan 9 15:49:02 2009
@@ -55,15 +55,8 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"Line Down",
- ["BUG? - For some reason we're acting as if the page has just finished loading",
- "BRAILLE LINE: 'Enter Bug: orca â This page lets you enter a new bug into Bugzilla. h1'",
- " VISIBLE: 'Enter Bug: orca â This page lets', cursor=1",
- "BRAILLE LINE: 'Enter Bug: orca'",
- " VISIBLE: 'Enter Bug: orca', cursor=0",
- "BRAILLE LINE: 'Enter Bug: orca â This page lets you enter a new bug into Bugzilla. h1'",
+ ["BRAILLE LINE: 'Enter Bug: orca â This page lets you enter a new bug into Bugzilla. h1'",
" VISIBLE: 'Enter Bug: orca â This page lets', cursor=1",
- "SPEECH OUTPUT: 'Enter Bug: orca â This page lets you enter a new bug into Bugzilla. heading level 1'",
- "SPEECH OUTPUT: 'Enter Bug: orca page'",
"SPEECH OUTPUT: 'Enter Bug: orca â This page lets you enter a new bug into Bugzilla. heading level 1'"]))
sequence.append(utils.StartRecordingAction())
Modified: trunk/test/keystrokes/firefox/line_nav_wiki.py
==============================================================================
--- trunk/test/keystrokes/firefox/line_nav_wiki.py (original)
+++ trunk/test/keystrokes/firefox/line_nav_wiki.py Fri Jan 9 15:49:02 2009
@@ -93,15 +93,8 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"Line Down",
- ["BUG? - Something is causing the page information to be presented when it shouldn't be. But it doesn't always happen.",
- "BRAILLE LINE: 'Welcome to Orca! h1'",
- " VISIBLE: 'Welcome to Orca! h1', cursor=1",
- "BRAILLE LINE: 'Orca - GNOME Live!'",
- " VISIBLE: 'Orca - GNOME Live!', cursor=0",
- "BRAILLE LINE: 'Welcome to Orca! h1'",
+ ["BRAILLE LINE: 'Welcome to Orca! h1'",
" VISIBLE: 'Welcome to Orca! h1', cursor=1",
- "SPEECH OUTPUT: 'Welcome to Orca! heading level 1'",
- "SPEECH OUTPUT: 'Orca - GNOME Live! page'",
"SPEECH OUTPUT: 'Welcome to Orca! heading level 1'"]))
sequence.append(utils.StartRecordingAction())
Modified: trunk/test/keystrokes/firefox/xul_role_combo_box.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_combo_box.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_combo_box.py Fri Jan 9 15:49:02 2009
@@ -19,7 +19,30 @@
sequence.append(KeyComboAction("<Alt>e"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Return"))
-sequence.append(WaitForWindowActivate("Minefield Preferences",None))
+sequence.append(WaitForWindowActivate("",None))
+
+########################################################################
+# Press Right Arrow to get to the next list item and Left Arrow to
+# get back. We'll do this because in Firefox 3.1 we are not getting the
+# correct events until we Alt+Tab out of and then back into the window.
+# This does not seem to be an issue for Firefox 3.0
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Right"))
+sequence.append(utils.AssertPresentationAction(
+ "Right Arrow in list",
+ ["KNOWN ISSUE - Firefox 3.1 is not giving us anything here, but Firefox 3.0 is. If we have output, the bug is not present."]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Left"))
+sequence.append(utils.AssertPresentationAction(
+ "Left Arrow in list",
+ ["KNOWN ISSUE - Firefox 3.1 is not giving us anything here, but Firefox 3.0 is. If we have output, the bug is not present."]))
+
+sequence.append(KeyComboAction("<Alt>Tab"))
+sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
+sequence.append(KeyComboAction("<Alt>Tab"))
+sequence.append(WaitForWindowActivate(utils.firefoxAppNames + " Preferences", None))
########################################################################
# Press Tab to move to the "When Minefield starts" combo box. This combo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]