orca r4398 - in trunk: . test/keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4398 - in trunk: . test/keystrokes/firefox
- Date: Fri, 2 Jan 2009 20:51:35 +0000 (UTC)
Author: joanied
Date: Fri Jan 2 20:51:34 2009
New Revision: 4398
URL: http://svn.gnome.org/viewvc/orca?rev=4398&view=rev
Log:
* test/keystrokes/firefox/moz_menu.py:
test/keystrokes/firefox/xul_role_list_item.py:
test/keystrokes/firefox/label_guess_bugzilla_search.py:
test/keystrokes/firefox/sayAll_html_test_page.py:
test/keystrokes/firefox/xul_role_tree.py:
test/keystrokes/firefox/xul_role_entry.py:
test/keystrokes/firefox/xul_role_check_box.py:
test/keystrokes/firefox/xul_role_page_tab.py
More work on getting reproducible results out of the FF
regression tests. Still a work in progress.
Modified:
trunk/ChangeLog
trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py
trunk/test/keystrokes/firefox/moz_menu.py
trunk/test/keystrokes/firefox/sayAll_html_test_page.py
trunk/test/keystrokes/firefox/xul_role_check_box.py
trunk/test/keystrokes/firefox/xul_role_entry.py
trunk/test/keystrokes/firefox/xul_role_list_item.py
trunk/test/keystrokes/firefox/xul_role_page_tab.py
trunk/test/keystrokes/firefox/xul_role_tree.py
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 Fri Jan 2 20:51:34 2009
@@ -52,6 +52,7 @@
sequence.append(KeyPressAction(0, None, "KP_Insert"))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_COMBO_BOX))
sequence.append(utils.AssertPresentationAction(
"Next form field",
["BRAILLE LINE: 'Summary: contains all of the words/strings Combo $l Search Button'",
@@ -63,6 +64,7 @@
sequence.append(KeyPressAction(0, None, "KP_Insert"))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_COMBO_BOX))
sequence.append(utils.AssertPresentationAction(
"Next form field",
["BRAILLE LINE: 'Summary: contains all of the words/strings Combo $l Search Button'",
@@ -73,6 +75,7 @@
sequence.append(KeyPressAction(0, None, "KP_Insert"))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_COMBO_BOX))
sequence.append(utils.AssertPresentationAction(
"Next form field",
["BRAILLE LINE: 'Summary: contains all of the words/strings Combo $l Search Button'",
Modified: trunk/test/keystrokes/firefox/moz_menu.py
==============================================================================
--- trunk/test/keystrokes/firefox/moz_menu.py (original)
+++ trunk/test/keystrokes/firefox/moz_menu.py Fri Jan 2 20:51:34 2009
@@ -85,7 +85,7 @@
sequence.append(utils.AssertPresentationAction(
"Move to basic grey",
["BRAILLE LINE: 'Basic Grey'",
- " VISIBLE: 'Basic Grey', cursor=0",
+ " VISIBLE: 'Basic Grey', cursor=(0|1)",
"BRAILLE LINE: 'Basic Grey'",
" VISIBLE: 'Basic Grey', cursor=1",
"SPEECH OUTPUT: ''",
@@ -171,7 +171,7 @@
sequence.append(utils.AssertPresentationAction(
"Move to one",
["BRAILLE LINE: 'one'",
- " VISIBLE: 'one', cursor=0",
+ " VISIBLE: 'one', cursor=(0|1)",
"BRAILLE LINE: 'one'",
" VISIBLE: 'one', cursor=1",
"SPEECH OUTPUT: ''",
Modified: trunk/test/keystrokes/firefox/sayAll_html_test_page.py
==============================================================================
--- trunk/test/keystrokes/firefox/sayAll_html_test_page.py (original)
+++ trunk/test/keystrokes/firefox/sayAll_html_test_page.py Fri Jan 2 20:51:34 2009
@@ -14,7 +14,7 @@
sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
########################################################################
-# Load the local "simple form" test case.
+# Load the local "html page" test case.
#
sequence.append(KeyComboAction("<Control>l"))
sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
@@ -23,6 +23,7 @@
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForDocLoad())
+sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_DOCUMENT_FRAME))
########################################################################
# Press Control+Home to move to the top.
Modified: trunk/test/keystrokes/firefox/xul_role_check_box.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_check_box.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_check_box.py Fri Jan 2 20:51:34 2009
@@ -21,6 +21,7 @@
sequence.append(KeyComboAction("p"))
sequence.append(WaitForWindowActivate("Print",None))
+sequence.append(PauseAction(3000))
########################################################################
# Right Arrow until we're at the Options tab
Modified: trunk/test/keystrokes/firefox/xul_role_entry.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_entry.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_entry.py Fri Jan 2 20:51:34 2009
@@ -39,6 +39,17 @@
sequence.append(WaitForWindowActivate("", None))
sequence.append(PauseAction(3000))
+# The dialog might be called Add Bookmark or it might be called New
+# Bookmark. Depends on the verison of Firefox being used/tested.
+#
+dialogName = "(Add Bookmark|New Bookmark)"
+
+# Depending on the version, there may also be text present in the entry
+# So we'll delete it for good meausre.
+#
+sequence.append(KeyComboAction("<Control>a"))
+sequence.append(KeyComboAction("BackSpace"))
+
########################################################################
# Focus will be in the Name single-line entry. Type "this is a test"
#
@@ -51,9 +62,9 @@
sequence.append(KeyComboAction("BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a test \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a test \$l'",
" VISIBLE: 'this is a test $l', cursor=15",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a test \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a test \$l'",
" VISIBLE: 'this is a test $l', cursor=14",
"SPEECH OUTPUT: 't'"]))
@@ -61,9 +72,9 @@
sequence.append(KeyComboAction("BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a tes \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a tes \$l'",
" VISIBLE: 'this is a tes $l', cursor=14",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a tes \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a tes \$l'",
" VISIBLE: 'this is a tes $l', cursor=13",
"SPEECH OUTPUT: 's'"]))
@@ -71,9 +82,9 @@
sequence.append(KeyComboAction("BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a te \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a te \$l'",
" VISIBLE: 'this is a te $l', cursor=13",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a te \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a te \$l'",
" VISIBLE: 'this is a te $l', cursor=12",
"SPEECH OUTPUT: 'e'"]))
@@ -81,9 +92,9 @@
sequence.append(KeyComboAction("BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a t \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a t \$l'",
" VISIBLE: 'this is a t $l', cursor=12",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a t \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a t \$l'",
" VISIBLE: 'this is a t $l', cursor=11",
"SPEECH OUTPUT: 't'"]))
@@ -91,9 +102,9 @@
sequence.append(KeyComboAction("BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a \$l'",
" VISIBLE: 'this is a $l', cursor=11",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a \$l'",
" VISIBLE: 'this is a $l', cursor=10",
"SPEECH OUTPUT: 'space'"]))
@@ -105,9 +116,9 @@
sequence.append(KeyComboAction("<Control>BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Control Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a \$l'",
" VISIBLE: 'this is a $l', cursor=9",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is a \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is a \$l'",
" VISIBLE: 'this is a $l', cursor=9",
"SPEECH OUTPUT: 'a'"]))
@@ -115,9 +126,9 @@
sequence.append(KeyComboAction("<Control>BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Control Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is \$l'",
" VISIBLE: 'this is $l', cursor=6",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this is \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this is \$l'",
" VISIBLE: 'this is $l', cursor=6",
"SPEECH OUTPUT: 'is '"]))
@@ -125,9 +136,9 @@
sequence.append(KeyComboAction("<Control>BackSpace"))
sequence.append(utils.AssertPresentationAction(
"Control Backspace",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this \$l'",
" VISIBLE: 'this $l', cursor=1",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this \$l'",
" VISIBLE: 'this $l', cursor=1",
"SPEECH OUTPUT: 'this '"]))
@@ -143,7 +154,7 @@
sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
"Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=10",
"SPEECH OUTPUT: 's'"]))
@@ -151,7 +162,7 @@
sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
"Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=9",
"SPEECH OUTPUT: 'i'"]))
@@ -159,7 +170,7 @@
sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
"Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=8",
"SPEECH OUTPUT: 'h'"]))
@@ -167,7 +178,7 @@
sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
"Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=7",
"SPEECH OUTPUT: 't'"]))
@@ -179,7 +190,7 @@
sequence.append(KeyComboAction("<Control>Left"))
sequence.append(utils.AssertPresentationAction(
"Control Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=4",
"SPEECH OUTPUT: 'is '"]))
@@ -187,7 +198,7 @@
sequence.append(KeyComboAction("<Control>Left"))
sequence.append(utils.AssertPresentationAction(
"Control Left",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=1",
"SPEECH OUTPUT: 'so '"]))
@@ -199,7 +210,7 @@
sequence.append(utils.AssertPresentationAction(
"Control Delete",
["BUG? - We are speaking the new caret location -- we land on a space -- rather than the word that was just deleted.",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog so is this \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog so is this \$l'",
" VISIBLE: 'so is this $l', cursor=3",
"SPEECH OUTPUT: 'space'"]))
@@ -208,7 +219,7 @@
sequence.append(utils.AssertPresentationAction(
"Control Delete",
["BUG? - We are speaking the new caret location -- we land on a space -- rather than the word that was just deleted.",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog is this \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog is this \$l'",
" VISIBLE: ' is this $l', cursor=4",
"SPEECH OUTPUT: 'space'"]))
@@ -219,7 +230,7 @@
sequence.append(KeyComboAction("Delete", 500))
sequence.append(utils.AssertPresentationAction(
"Delete",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this \$l'",
" VISIBLE: ' this $l', cursor=1",
"SPEECH OUTPUT: 'space'"]))
@@ -227,7 +238,7 @@
sequence.append(KeyComboAction("Delete", 500))
sequence.append(utils.AssertPresentationAction(
"Delete",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog this \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog this \$l'",
" VISIBLE: 'this $l', cursor=1",
"SPEECH OUTPUT: 't'"]))
@@ -235,7 +246,7 @@
sequence.append(KeyComboAction("Delete", 500))
sequence.append(utils.AssertPresentationAction(
"Delete",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog his \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog his \$l'",
" VISIBLE: 'his $l', cursor=1",
"SPEECH OUTPUT: 'h'"]))
@@ -243,7 +254,7 @@
sequence.append(KeyComboAction("Delete", 500))
sequence.append(utils.AssertPresentationAction(
"Delete",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog is \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog is \$l'",
" VISIBLE: 'is $l', cursor=1",
"SPEECH OUTPUT: 'i'"]))
@@ -251,46 +262,20 @@
sequence.append(KeyComboAction("Delete", 500))
sequence.append(utils.AssertPresentationAction(
"Delete",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog s \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog s \$l'",
" VISIBLE: 's $l', cursor=1",
"SPEECH OUTPUT: 's'"]))
########################################################################
-# Press Tab to get to the Location entry.
-#
-sequence.append(utils.StartRecordingAction())
-sequence.append(KeyComboAction("Tab"))
-sequence.append(utils.AssertPresentationAction(
- "Tab to Location",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
- " VISIBLE: ' $l', cursor=1",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
- " VISIBLE: ' $l', cursor=1",
- "SPEECH OUTPUT: ''",
- "SPEECH OUTPUT: 'Location: text '"]))
-
-########################################################################
-# Press Tab to get to the Keyword entry.
-#
-sequence.append(utils.StartRecordingAction())
-sequence.append(KeyComboAction("Tab"))
-sequence.append(utils.AssertPresentationAction(
- "Tab to Keyword",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
- " VISIBLE: ' $l', cursor=1",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
- " VISIBLE: ' $l', cursor=1",
- "SPEECH OUTPUT: ''",
- "SPEECH OUTPUT: 'Keyword: text '"]))
-
-########################################################################
-# Press Tab to get to the Description entry.
+# Press Shift+Tab 3 times to get to the Description Entry.
#
+sequence.append(KeyComboAction("<Shift>Tab"))
+sequence.append(KeyComboAction("<Shift>Tab"))
sequence.append(utils.StartRecordingAction())
-sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyComboAction("<Shift>Tab"))
sequence.append(utils.AssertPresentationAction(
- "Tab to Description",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
+ "Shift+Tab to Description",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog \$l'",
" VISIBLE: ' $l', cursor=1",
"SPEECH OUTPUT: ''",
"SPEECH OUTPUT: 'Description: text '"]))
@@ -303,9 +288,9 @@
sequence.append(KeyComboAction("Return"))
sequence.append(utils.AssertPresentationAction(
"Return for new line'",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog \$l'",
" VISIBLE: ' $l', cursor=1",
- "BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog \$l'",
+ "BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog \$l'",
" VISIBLE: ' $l', cursor=1"]))
########################################################################
@@ -320,7 +305,7 @@
sequence.append(KeyComboAction("Up"))
sequence.append(utils.AssertPresentationAction(
"Up Arrow",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog Here is the first line. \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog Here is the first line. \$l'",
" VISIBLE: 'Here is the first line. $l', cursor=24",
"SPEECH OUTPUT: 'Here is the first line.'"]))
@@ -331,7 +316,7 @@
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"Down Arrow",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog Here is the second line. \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog Here is the second line. \$l'",
" VISIBLE: 'Here is the second line. $l', cursor=25",
"SPEECH OUTPUT: 'Here is the second line.'"]))
@@ -343,7 +328,7 @@
sequence.append(PauseAction(3000))
sequence.append(utils.AssertPresentationAction(
"Basic Where Am I",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application Add Bookmark Dialog Here is the second line. \$l'",
+ ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + dialogName + " Dialog Here is the second line. \$l'",
" VISIBLE: 'Here is the second line. $l', cursor=25",
"SPEECH OUTPUT: ''",
"SPEECH OUTPUT: 'text'",
Modified: trunk/test/keystrokes/firefox/xul_role_list_item.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_list_item.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_list_item.py Fri Jan 2 20:51:34 2009
@@ -23,39 +23,43 @@
sequence.append(PauseAction(3000))
########################################################################
-# Press Right Arrow to move forward list item by list item.
+# 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",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + utils.firefoxAppNames + " Preferences Frame List Tabs ListItem'",
- " VISIBLE: 'Tabs ListItem', cursor=1",
- "SPEECH OUTPUT: ''",
- "SPEECH OUTPUT: 'Tabs'",
- "SPEECH OUTPUT: 'New pages should be opened in:'"]))
+ ["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("Right"))
+sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
- "Right Arrow in list",
- ["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + utils.firefoxAppNames + " Preferences Frame List Content ListItem'",
- " VISIBLE: 'Content ListItem', cursor=1",
- "SPEECH OUTPUT: ''",
- "SPEECH OUTPUT: 'Content'"]))
+ "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 Left Arrow to move backward list item by list item.
+# Press Right Arrow to move forward list item by list item.
#
sequence.append(utils.StartRecordingAction())
-sequence.append(KeyComboAction("Left"))
+sequence.append(KeyComboAction("Right"))
sequence.append(utils.AssertPresentationAction(
- "Left Arrow in list",
+ "Right Arrow in list",
["BRAILLE LINE: '" + utils.firefoxAppNames + " Application " + utils.firefoxAppNames + " Preferences Frame List Tabs ListItem'",
" VISIBLE: 'Tabs ListItem', cursor=1",
"SPEECH OUTPUT: ''",
"SPEECH OUTPUT: 'Tabs'"]))
+########################################################################
+# Press Left Arrow to move backward list item by list item.
+#
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Left"))
sequence.append(utils.AssertPresentationAction(
Modified: trunk/test/keystrokes/firefox/xul_role_page_tab.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_page_tab.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_page_tab.py Fri Jan 2 20:51:34 2009
@@ -21,6 +21,7 @@
sequence.append(KeyComboAction("p"))
sequence.append(WaitForWindowActivate("Print",None))
+sequence.append(PauseAction(3000))
########################################################################
# Do a basic "Where Am I" via KP_Enter.
Modified: trunk/test/keystrokes/firefox/xul_role_tree.py
==============================================================================
--- trunk/test/keystrokes/firefox/xul_role_tree.py (original)
+++ trunk/test/keystrokes/firefox/xul_role_tree.py Fri Jan 2 20:51:34 2009
@@ -44,6 +44,29 @@
sequence.append(PauseAction(3000))
########################################################################
+# Press Down Arrow to get to the first item in the tree and Up 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("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "Down Arrow in tree table",
+ ["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("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "Up Arrow in tree table",
+ ["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("Library", None))
+
+########################################################################
# Press Shift+Tab to move to the tree of bookmarks on the left.
#
sequence.append(utils.StartRecordingAction())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]