[orca] New regression test illustrating bgo#591807 - Orca sometimes presents the previous line when Home/En
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] New regression test illustrating bgo#591807 - Orca sometimes presents the previous line when Home/En
- Date: Fri, 14 Aug 2009 20:16:55 +0000 (UTC)
commit 2e0926662aaba0f22a53d3733df9df1c8e32f16b
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Aug 14 16:15:27 2009 -0400
New regression test illustrating bgo#591807 - Orca sometimes presents the previous line when Home/End is pressed in Gecko
test/html/bug-591807.html | 9 +++
test/keystrokes/firefox/bug_591807.py | 118 +++++++++++++++++++++++++++++++++
2 files changed, 127 insertions(+), 0 deletions(-)
---
diff --git a/test/html/bug-591807.html b/test/html/bug-591807.html
new file mode 100644
index 0000000..e7da1f9
--- /dev/null
+++ b/test/html/bug-591807.html
@@ -0,0 +1,9 @@
+<html>
+<head>
+<title>Test</title>
+</head>
+<body>
+This is a test.<br /><br />
+So is this.
+</body>
+</html>
diff --git a/test/keystrokes/firefox/bug_591807.py b/test/keystrokes/firefox/bug_591807.py
new file mode 100644
index 0000000..e650e87
--- /dev/null
+++ b/test/keystrokes/firefox/bug_591807.py
@@ -0,0 +1,118 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of navigation by Home/End on a blank line."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+########################################################################
+# We wait for the focus to be on a blank Firefox window.
+#
+sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
+
+########################################################################
+# Load the local blockquote test case.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
+
+sequence.append(TypeAction(utils.htmlURLPrefix + "bug-591807.html"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+sequence.append(WaitForFocus("Test",
+ 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: 'This is a test.'",
+ " VISIBLE: 'This is a test.', cursor=1",
+ "SPEECH OUTPUT: 'This is a test.",
+ "'"]))
+
+########################################################################
+# Press Down Arrow to move to the blank line.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "Down",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+########################################################################
+# Press Home to move to the beginning of the blank line.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Home"))
+sequence.append(utils.AssertPresentationAction(
+ "Home",
+ ["BUG? - We should remain on the blank line.",
+ "BRAILLE LINE: 'This is a test.'",
+ " VISIBLE: 'This is a test.', cursor=1",
+ "SPEECH OUTPUT: 'T'"]))
+
+########################################################################
+# 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: 'This is a test.'",
+ " VISIBLE: 'This is a test.', cursor=1",
+ "SPEECH OUTPUT: 'This is a test.",
+ "'"]))
+
+########################################################################
+# Press Down Arrow to move to the blank line.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "Down",
+ ["BRAILLE LINE: ''",
+ " VISIBLE: '', cursor=1",
+ "SPEECH OUTPUT: 'blank'"]))
+
+########################################################################
+# Press End to move to the end of the blank line.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("End"))
+sequence.append(utils.AssertPresentationAction(
+ "End",
+ ["BUG? - We should remain on the blank line.",
+ "BRAILLE LINE: 'This is a test.'",
+ " VISIBLE: 'This is a test.', cursor=16",
+ "SPEECH OUTPUT: 'newline'"]))
+
+########################################################################
+# 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(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]