orca r4325 - in trunk/test: html keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4325 - in trunk/test: html keystrokes/firefox
- Date: Fri, 7 Nov 2008 18:16:20 +0000 (UTC)
Author: joanied
Date: Fri Nov 7 18:16:20 2008
New Revision: 4325
URL: http://svn.gnome.org/viewvc/orca?rev=4325&view=rev
Log:
A new regression test in anticipation of the testing of the fix for bug
#555055.
Added:
trunk/test/html/bug-555055.html
trunk/test/keystrokes/firefox/line_nav_bug_555055.py
Added: trunk/test/html/bug-555055.html
==============================================================================
--- (empty file)
+++ trunk/test/html/bug-555055.html Fri Nov 7 18:16:20 2008
@@ -0,0 +1,145 @@
+<html>
+<head>
+<title>Menu</title>
+</head>
+<body>
+<table border="0" cellpadding="0" cellspacing="0" >
+ <tbody><tr>
+ <td>
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" height="176" width="100%">
+ <tbody><tr>
+ <td><img src="" alt="" border="0"></td>
+ <td align="right">
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" height="59" width="100%" align="right">
+ <tbody><tr><td align="right"><img src="" alt="" border="0"></td></tr>
+ <tr><td align="right"><img src="" alt="" border="0"></td></tr></tbody></table></td>
+ <td rowspan="2" align="right"><img src="" alt="" border="0"></td>
+ </tr>
+ <tr>
+ <td colspan="2" width="100%" align="left"><img src="" alt="" border="0"></td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <table border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tbody><tr>
+ <td>
+ Hello world!
+ <td valign="top" width="27"><img src="" alt="" border="0"></td>
+ </tr>
+ </tbody></table>
+ </td>
+ </tr>
+ </tbody></table>
+ </td>
+ </tr>
+
+ <tr>
+ <td height="100%" valign="top" align="center">
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
+ <tbody><tr>
+ <td colspan="3" height="25" valign="top" align="center">
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" height="25" width="100%">
+ <tbody><tr>
+ <td height="25" width="174"> </td>
+ </tr></tbody></table></td></tr>
+
+ <tr>
+ <td valign="top" width="200" align="right">
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" width="174">
+ <tbody><tr><td valign="top"><img src="orca-for-tests.jpg" alt="" border="0" ></td></tr>
+ <tr><td valign="top"><img src="orca-for-tests.jpg" alt="" border="0"></td></tr>
+ <tr><td valign="top"><img src="orca-for-tests.jpg" alt="" border="0"></td></tr>
+ </tbody></table>
+ </td>
+ <td height="100%">
+
+<table valign="top" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
+ <tbody><tr>
+ <td colspan="2" height="48" valign="top">
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" height="48" width="100%">
+ <tbody><tr><td valign="middle" align="right"><img src="" alt="hi" border="0"></td>
+ </tr></tbody></table></td>
+ </tr>
+ <tr>
+ <td width="33"> </td>
+ <td height="100%" valign="top" width="100%">
+
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tbody><tr>
+ <td valign="top" width="100%">
+ <br>
+
+ <table valign="top" border="0" cellpadding="0" cellspacing="0" width="100%">
+ <tbody><tr>
+
+ <td valign="top" width="100%">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tbody><tr>
+
+
+
+ <td valign="top">
+
+<p>
+
+ <table border="0" cellpadding="10" cellspacing="0" width="100%">
+
+ <tbody><tr>
+ <td> </td><td>
+<p>Item 1</p>
+<p>Item 2</p>
+<p>Item 3</p>
+<br>
+</td>
+ </tr>
+ </tbody></table>
+</p>
+</td></tr>
+</tbody></table>
+</td>
+</tr>
+</tbody></table>
+</td>
+<td valign="TOP">
+</td>
+</tr>
+
+<tr>
+<td colspan="3" valign="BOTTOM" align="CENTER">
+</td>
+</tr>
+</tbody></table>
+<br>
+<center><table border="0" cellpadding="0" cellspacing="3"><tbody><tr><td align="center">
+<br>
+</td></tr></tbody></table></center>
+<br></td>
+<td rowspan="2" valign="bottom" width="33"> </td>
+</tr>
+ <tr>
+<td colspan="2" height="38" valign="bottom">This table is messed up.</td>
+</tr>
+</tbody></table>
+
+ </td>
+ <td valign="bottom" width="217">
+ <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
+ <tbody><tr><td valign="top">Here's a cell</td>
+ </tr>
+ <tr>
+ <td valign="bottom">
+ </td></tr>
+
+ </tbody></table>
+ </td>
+ </tr>
+
+
+ </tbody></table>
+ </td>
+ </tr>
+
+</tbody></table>
+
+
+</body></html>
\ No newline at end of file
Added: trunk/test/keystrokes/firefox/line_nav_bug_555055.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/line_nav_bug_555055.py Fri Nov 7 18:16:20 2008
@@ -0,0 +1,231 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of line navigation output of Firefox.
+"""
+
+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-555055.html"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+
+sequence.append(WaitForFocus("",
+ 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: 'Image'",
+ " VISIBLE: 'Image', cursor=1",
+ "SPEECH OUTPUT: 'image'"]))
+
+########################################################################
+# Down Arrow.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Line Down",
+ ["BRAILLE LINE: 'Hello world!'",
+ " VISIBLE: 'Hello world!', cursor=1",
+ "SPEECH OUTPUT: 'Hello world!'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Line Down",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Line Down",
+ ["BRAILLE LINE: 'hi Image'",
+ " VISIBLE: 'hi Image', cursor=1",
+ "SPEECH OUTPUT: 'hi image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Line Down",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Line Down",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "6. Line Down",
+ ["BRAILLE LINE: 'Item 1'",
+ " VISIBLE: 'Item 1', cursor=1",
+ "SPEECH OUTPUT: 'Item 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "7. Line Down",
+ ["BRAILLE LINE: 'Item 2'",
+ " VISIBLE: 'Item 2', cursor=1",
+ "SPEECH OUTPUT: 'Item 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "8. Line Down",
+ ["BRAILLE LINE: 'Item 3'",
+ " VISIBLE: 'Item 3', cursor=1",
+ "SPEECH OUTPUT: 'Item 3'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "9. Line Down",
+ ["BUG? - Braille should indicate the blank line",
+ "BRAILLE LINE: 'Item 3'",
+ " VISIBLE: 'Item 3', cursor=0",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "10. Line Down",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+########################################################################
+# Up Arrow.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Line Up",
+ ["BUG? - Braille should indicate the blank line",
+ "BRAILLE LINE: 'Item 3'",
+ " VISIBLE: 'Item 3', cursor=0",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Line Up",
+ ["BRAILLE LINE: 'Item 3'",
+ " VISIBLE: 'Item 3', cursor=1",
+ "SPEECH OUTPUT: 'Item 3'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Line Up",
+ ["BRAILLE LINE: 'Item 2'",
+ " VISIBLE: 'Item 2', cursor=1",
+ "SPEECH OUTPUT: 'Item 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Line Up",
+ ["BRAILLE LINE: 'Item 1'",
+ " VISIBLE: 'Item 1', cursor=1",
+ "SPEECH OUTPUT: 'Item 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Line Up",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "6. Line Up",
+ ["BUG? - Are we finding this line twice?",
+ "BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: '",
+ " Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "7. Line Up",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "8. Line Up",
+ ["BRAILLE LINE: 'hi Image'",
+ " VISIBLE: 'hi Image', cursor=1",
+ "SPEECH OUTPUT: 'hi image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "9. Line Up",
+ ["BRAILLE LINE: 'Â'",
+ " VISIBLE: 'Â', cursor=1",
+ "SPEECH OUTPUT: 'Â'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "10. Line Up",
+ ["BRAILLE LINE: 'Hello world!'",
+ " VISIBLE: 'Hello world!', cursor=1",
+ "SPEECH OUTPUT: 'Hello world!'"]))
+
+########################################################################
+# 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]