orca r4276 - trunk/test/keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4276 - trunk/test/keystrokes/firefox
- Date: Sun, 5 Oct 2008 02:12:34 +0000 (UTC)
Author: joanied
Date: Sun Oct 5 02:12:34 2008
New Revision: 4276
URL: http://svn.gnome.org/viewvc/orca?rev=4276&view=rev
Log:
New regression test.
Added:
trunk/test/keystrokes/firefox/bug_552887a.py
Added: trunk/test/keystrokes/firefox/bug_552887a.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/bug_552887a.py Sun Oct 5 02:12:34 2008
@@ -0,0 +1,297 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of the fix for one of the two issues in bug 552887a."""
+
+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 "simple form" test case.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus("Location", acc_role=pyatspi.ROLE_ENTRY))
+
+sequence.append(TypeAction(utils.htmlURLPrefix + "bug-552887a.html"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+
+########################################################################
+# 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: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+########################################################################
+# Down Arrow to the bottom.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Line Down",
+ ["BRAILLE LINE: 'Line 1'",
+ " VISIBLE: 'Line 1', cursor=1",
+ "SPEECH OUTPUT: 'Line 1",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Line Down",
+ ["BRAILLE LINE: 'Line 1 Line 2 h2'",
+ " VISIBLE: 'Line 1 Line 2 h2', cursor=14",
+ "SPEECH OUTPUT: 'Line 1",
+ " Line 2",
+ " heading level 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Line Down",
+ ["BRAILLE LINE: 'Line 3'",
+ " VISIBLE: 'Line 3', cursor=1",
+ "SPEECH OUTPUT: 'Line 3",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Line Down",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Line Down",
+ ["BRAILLE LINE: 'The Orca logo Image'",
+ " VISIBLE: 'The Orca logo Image', cursor=1",
+ "SPEECH OUTPUT: 'The Orca logo link image ",
+ " link ",
+ "'"]))
+
+#sequence.append(utils.StartRecordingAction())
+#sequence.append(KeyComboAction("Down"))
+#sequence.append(utils.AssertPresentationAction(
+# "6. Line Down",
+# []))
+#BUG? - For some reason still yet to be determined, we're never getting to the text beneath the image.
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "7. Line Down",
+ ["BRAILLE LINE: 'This text comes before the box section'",
+ " VISIBLE: 'xt comes before the box section', cursor=32",
+ "SPEECH OUTPUT: 'This text comes before the box section",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "8. Line Down",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "9. Line Down",
+ ["BRAILLE LINE: 'Here's a box'",
+ " VISIBLE: 'Here's a box', cursor=1",
+ "SPEECH OUTPUT: 'Here's a box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "10. Line Down",
+ ["BRAILLE LINE: 'Here's some box text.'",
+ " VISIBLE: 'Here's some box text.', cursor=1",
+ "SPEECH OUTPUT: 'Here's some box text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "11. Line Down",
+ ["BRAILLE LINE: 'The end of the box'",
+ " VISIBLE: 'The end of the box', cursor=1",
+ "SPEECH OUTPUT: 'The end of the box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "12. Line Down",
+ ["BRAILLE LINE: 'This text comes after'",
+ " VISIBLE: 'This text comes after', cursor=1",
+ "SPEECH OUTPUT: 'This text comes after'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "13. Line Down",
+ ["BRAILLE LINE: 'the box section.'",
+ " VISIBLE: 'the box section.', cursor=1",
+ "SPEECH OUTPUT: 'the box section.",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "14. Line Down",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "15. Line Down",
+ [""]))
+
+########################################################################
+# Up Arrow to the top.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Line Up",
+ ["BRAILLE LINE: 'the box section.'",
+ " VISIBLE: 'the box section.', cursor=1",
+ "SPEECH OUTPUT: 'the box section.",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Line Up",
+ ["BRAILLE LINE: 'This text comes after'",
+ " VISIBLE: 'This text comes after', cursor=1",
+ "SPEECH OUTPUT: 'This text comes after'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Line Up",
+ ["BRAILLE LINE: 'The end of the box'",
+ " VISIBLE: 'The end of the box', cursor=1",
+ "SPEECH OUTPUT: 'The end of the box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Line Up",
+ ["BRAILLE LINE: 'Here's some box text.'",
+ " VISIBLE: 'Here's some box text.', cursor=1",
+ "SPEECH OUTPUT: 'Here's some box text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Line Up",
+ ["BRAILLE LINE: 'Here's a box'",
+ " VISIBLE: 'Here's a box', cursor=1",
+ "SPEECH OUTPUT: 'Here's a box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "6. Line Up",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "7. Line Up",
+ ["BRAILLE LINE: 'This text comes before the box section'",
+ " VISIBLE: 'This text comes before the box s', cursor=1",
+ "SPEECH OUTPUT: 'This text comes before the box section",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "8. Line Up",
+ ["BRAILLE LINE: 'The Orca logo Image'",
+ " VISIBLE: 'The Orca logo Image', cursor=1",
+ "SPEECH OUTPUT: 'The Orca logo link image ",
+ " link ",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "9. Line Up",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "10. Line Up",
+ ["BRAILLE LINE: 'Line 3'",
+ " VISIBLE: 'Line 3', cursor=1",
+ "SPEECH OUTPUT: 'Line 3",
+ "'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "11. Line Up",
+ ["BRAILLE LINE: 'Line 1 Line 2 h2'",
+ " VISIBLE: 'Line 1 Line 2 h2', cursor=1",
+ "SPEECH OUTPUT: 'Line 1",
+ " Line 2",
+ " heading level 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "12. Line Up",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "13. Line Up",
+ [""]))
+
+########################################################################
+# 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]