orca r4524 - trunk/test/keystrokes/firefox



Author: joanied
Date: Wed Feb 11 22:15:06 2009
New Revision: 4524
URL: http://svn.gnome.org/viewvc/orca?rev=4524&view=rev

Log:
New regression test.


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

Added: trunk/test/keystrokes/firefox/dojo_bug_570566.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/dojo_bug_570566.py	Wed Feb 11 22:15:06 2009
@@ -0,0 +1,108 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of fix for bug 570566 (Orca goes silent when navigating to
+uneditable text from an ARIA widget) using Firefox."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+########################################################################
+# We wait for the focus to be on the Firefox window as well as for focus
+# to move to the "Dojo Spinner Widget Test" frame.
+#
+sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
+
+########################################################################
+# Load the dojo spinner demo.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
+sequence.append(TypeAction(utils.DojoNightlyURLPrefix + "test_Editor.html"))
+sequence.append(KeyComboAction("Return"))
+sequence.append(WaitForDocLoad())
+sequence.append(WaitForFocus("Editor Test", 
+                              acc_role=pyatspi.ROLE_DOCUMENT_FRAME))
+
+########################################################################
+# Extra loading time.
+#
+sequence.append(PauseAction(7000))
+
+########################################################################
+# Shift+Tab to the toolbar. The buttons may vary based on what's in
+# the clipboard, so we won't have an assertion here.
+#
+sequence.append(KeyComboAction("<Shift>Tab"))
+
+########################################################################
+# Up Arrow to the heading above, and continue Up Arrowing to the top of
+# the page.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "1. Up Arrow", 
+    ["BUG? - Too verbose. We're treating the page as if it had just loaded.",
+     "BRAILLE LINE:  'Created from div h2'",
+     "     VISIBLE:  'Created from div h2', cursor=1",
+     "BRAILLE LINE:  'Editor Test'",
+     "     VISIBLE:  'Editor Test', cursor=0",
+     "BRAILLE LINE:  'Created from div h2'",
+     "     VISIBLE:  'Created from div h2', cursor=1",
+     "SPEECH OUTPUT: 'Created from div heading level 2 heading level 2'",
+     "SPEECH OUTPUT: 'Editor Test page'",
+     "SPEECH OUTPUT: 'Created from div heading level 2 heading level 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Up Arrow", 
+    ["BRAILLE LINE:  'Editor + Plugins Test h1'",
+     "     VISIBLE:  'Editor + Plugins Test h1', cursor=1",
+     "SPEECH OUTPUT: 'Editor + Plugins Test heading level 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Up Arrow", 
+    ["BUG? - The braille is not ideal, nor does it jive with the speech.",
+     "BRAILLE LINE:  '<x> CheckBox<x> CheckBox<x> CheckBox<x> CheckBox<x> CheckBox'",
+     "     VISIBLE:  '', cursor=1",
+     "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Up Arrow", 
+    ["BRAILLE LINE:  'Focus:<x> CheckBox Value:<x> CheckBox Change:<x> CheckBox Blur:<x> CheckBox Disabled:<x> CheckBox'",
+     "     VISIBLE:  'Focus:<x> CheckBox Value:<x> Che', cursor=1",
+     "SPEECH OUTPUT: 'Focus: check box checked grayed  Value: check box checked grayed  Change: check box checked grayed  Blur: check box checked grayed  Disabled: check box checked grayed  ",
+     "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Up Arrow", 
+    ["BRAILLE LINE:  'Automated Test - all check boxes should be checked'",
+     "     VISIBLE:  'Automated Test - all check boxes', cursor=1",
+     "SPEECH OUTPUT: 'Automated Test - all check boxes should be checked'"]))
+
+########################################################################
+# Close the demo
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus(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]