[orca] New regression test for bgo#589455
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca] New regression test for bgo#589455
- Date: Sun, 26 Jul 2009 03:43:56 +0000 (UTC)
commit 59f852d774344cf86c7d371359bf14cf4bce6b96
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sat Jul 25 23:40:15 2009 -0400
New regression test for bgo#589455
test/html/bug-589455.html | 10 +++++
test/keystrokes/firefox/bug_589455.py | 72 +++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/test/html/bug-589455.html b/test/html/bug-589455.html
new file mode 100644
index 0000000..b7f4d36
--- /dev/null
+++ b/test/html/bug-589455.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Test</title>
+</head>
+<body>
+<p>Here is a result:</p>
+<ol><li><h3><a href="anchors2.html">Anchors2.html</a></h3>This is a test.<br><cite>live.gnome.org/Orca</cite></li></ol>
+<p>The end.</p>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/bug_589455.py b/test/keystrokes/firefox/bug_589455.py
new file mode 100644
index 0000000..17a6f0a
--- /dev/null
+++ b/test/keystrokes/firefox/bug_589455.py
@@ -0,0 +1,72 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test for the fix of bug 589455
+"""
+
+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 "inline: Tab Panel Example 1" frame.
+#
+sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
+
+########################################################################
+# Load the UIUC Tab Panel demo.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
+sequence.append(TypeAction(utils.htmlURLPrefix + "bug-589455.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: 'Here is a result:'",
+ " VISIBLE: 'Here is a result:', cursor=1",
+ "SPEECH OUTPUT: 'Here is a result:'"]))
+
+########################################################################
+# Press 3 to move to the heading at level 3, which happens to be a link.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("3"))
+sequence.append(utils.AssertPresentationAction(
+ "Press 3 to move to the heading at level 3",
+ ["BRAILLE LINE: '1. Anchors2.html h3'",
+ " VISIBLE: '1. Anchors2.html h3', cursor=4",
+ "SPEECH OUTPUT: 'Anchors2.html link heading level 3'"]))
+
+########################################################################
+# Press Return to activate the link which should have focus.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Return"))
+sequence.append(utils.AssertPresentationAction(
+ "Press Return to active the link",
+ ["BUG? - We should get something here because the link should have focus and thus pressing Enter on it should activate the link."]))
+
+########################################################################
+# 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]