orca r4286 - trunk/test/keystrokes/firefox



Author: joanied
Date: Tue Oct 14 17:05:16 2008
New Revision: 4286
URL: http://svn.gnome.org/viewvc/orca?rev=4286&view=rev

Log:
Adding a new regression test for the find functionality in Firefox.


Added:
   trunk/test/keystrokes/firefox/find_wiki.py

Added: trunk/test/keystrokes/firefox/find_wiki.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/find_wiki.py	Tue Oct 14 17:05:16 2008
@@ -0,0 +1,181 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of find output of Firefox on the Orca wiki."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+########################################################################
+# We wait for the focus to be on a blank Firefox window.
+#
+sequence.append(WaitForWindowActivate("Minefield",None))
+
+########################################################################
+# Load the local "wiki" test case.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus("Location", acc_role=pyatspi.ROLE_ENTRY))
+
+sequence.append(TypeAction(utils.htmlURLPrefix + "orca-wiki.html"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+
+sequence.append(WaitForFocus("Orca - GNOME Live!",
+                             acc_role=pyatspi.ROLE_DOCUMENT_FRAME))
+
+########################################################################
+# Press Control+Home to move to the top.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+    "Top of file", 
+    ["BRAILLE LINE:  'Home News Projects Art Support Development Community'",
+     "     VISIBLE:  'Home News Projects Art Support D', cursor=1",
+     "SPEECH OUTPUT: 'Home link News link Projects link Art link Support link Development link Community link'"]))
+
+########################################################################
+# Get into the Find toolbar and type Orca.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>F"))
+sequence.append(utils.AssertPresentationAction(
+    "Get into the Find Toolbar", 
+    ["BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar  $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar  $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Find: text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(TypeAction("orca"))
+sequence.append(utils.AssertPresentationAction(
+    "Type Orca", 
+    ["BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar o $l'",
+     "     VISIBLE:  'o $l', cursor=2",
+     "BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar or $l'",
+     "     VISIBLE:  'or $l', cursor=2",
+     "BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar orc $l'",
+     "     VISIBLE:  'orc $l', cursor=3",
+     "BRAILLE LINE:  'Minefield Application Orca - GNOME Live! - Minefield Frame ToolBar orca $l'",
+     "     VISIBLE:  'orca $l', cursor=4",
+     "SPEECH OUTPUT: 'Orca link'"]))
+
+########################################################################
+# Press Return to move from result to result.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "1. Return",
+    ["SPEECH OUTPUT: 'Welcome to Orca! heading level 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Return",
+    ["SPEECH OUTPUT: '1. Welcome to Orca! link'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Return",
+    ["SPEECH OUTPUT: 'Orca is a free, open source, flexible, extensible, and powerful assistive'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Return",
+    ["SPEECH OUTPUT: 'combinations of speech synthesis, braille, and magnification, Orca'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Return",
+    ["SPEECH OUTPUT: 'AT-SPI (e.g., the GNOME desktop). The development of Orca has'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "6. Return",
+    ["SPEECH OUTPUT: 'Please join and participate on the Orca mailing list link  ( archives link ): it's a helpful, kind, and productive'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "7. Return",
+    ["SPEECH OUTPUT: 'Darragh à HÃiligh link  has created several audio guides for Orca. This is a fantastic contribution'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "8. Return",
+    ["SPEECH OUTPUT: 'â Review of Fedora 7 and the Orca screen reader for the Gnome graphical desktop link'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "9. Return",
+    ["SPEECH OUTPUT: 'Guide to installing the latest versions of Firefox and Orca link'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+    "10. Return",
+    ["SPEECH OUTPUT: 'As of GNOME 2.16, Orca is a part of the GNOME platform. As a result, Orca is already provided by'"]))
+
+########################################################################
+# Press Escape to exit the Find toolbar and return to the page content.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Escape"))
+sequence.append(utils.AssertPresentationAction(
+    "Escape",
+    ["BUG? - Seems like we're treating this as if the page has just finished loading. At least sometimes. I really need to get to the bottom of this issue.",
+     "BRAILLE LINE:  'As of GNOME 2.16, Orca is a part of the GNOME platform. As a result, Orca is already provided by'",
+     "     VISIBLE:  'As of GNOME 2.16, Orca is a part', cursor=23",
+     "BRAILLE LINE:  'Orca - GNOME Live!'",
+     "     VISIBLE:  'Orca - GNOME Live!', cursor=0",
+     "BRAILLE LINE:  'As of GNOME 2.16, Orca is a part of the GNOME platform. As a result, Orca is already provided by'",
+     "     VISIBLE:  'As of GNOME 2.16, Orca is a part', cursor=23",
+     "SPEECH OUTPUT: 'As of GNOME 2.16, Orca is a part of the GNOME platform. As a result, Orca is already provided by'",
+     "SPEECH OUTPUT: 'Orca - GNOME Live! page'",
+     "SPEECH OUTPUT: 'As of GNOME 2.16, Orca is a part of the GNOME platform. As a result, Orca is already provided by'"]))
+
+########################################################################
+# Press Down Arrow to read the next line (verifying that the caret 
+# position was correctly updated when the Find toolbar was closed).
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "Down",
+    ["BRAILLE LINE:  'default on a number of operating system distributions, including Open Solaris and Ubuntu.'",
+     "     VISIBLE:  'default on a number of operating', cursor=1",
+     "SPEECH OUTPUT: 'default on a number of operating system distributions, including Open Solaris link  and Ubuntu link .'"]))
+
+########################################################################
+# Move to the location bar by pressing Control+L.  When it has focus
+# type "about:blank" and press Return to restore the browser to the
+# conditions at the test's start.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus("Location", acc_role=pyatspi.ROLE_ENTRY))
+
+sequence.append(TypeAction("about:blank"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+
+# Just a little extra wait to let some events get through.
+#
+sequence.append(PauseAction(3000))
+
+sequence.append(utils.AssertionSummaryAction())
+
+sequence.start()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]