orca r4622 - in trunk: . src/orca/scripts/toolkits/Gecko test/keystrokes/firefox
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4622 - in trunk: . src/orca/scripts/toolkits/Gecko test/keystrokes/firefox
- Date: Thu, 5 Mar 2009 17:44:20 +0000 (UTC)
Author: joanied
Date: Thu Mar 5 17:44:20 2009
New Revision: 4622
URL: http://svn.gnome.org/viewvc/orca?rev=4622&view=rev
Log:
* src/orca/scripts/toolkits/Gecko/script.py:
test/keystrokes/firefox/codetalks_list.py: (new)
Fix for bug #570557 - (ARIA) List items not presented.
Added:
trunk/test/keystrokes/firefox/codetalks_list.py
Modified:
trunk/ChangeLog
trunk/src/orca/scripts/toolkits/Gecko/script.py
Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py (original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py Thu Mar 5 17:44:20 2009
@@ -4484,8 +4484,7 @@
pyatspi.ROLE_LIST]
text = self.queryNonEmptyText(obj)
- if text and not (self.isAriaWidget(obj) \
- and obj.getRole() == pyatspi.ROLE_LIST):
+ if text:
unicodeText = self.getUnicodeText(obj)
# Delete the final space character if we find it. Otherwise,
@@ -4591,8 +4590,7 @@
pyatspi.ROLE_LIST]
text = self.queryNonEmptyText(obj)
- if text and not (self.isAriaWidget(obj) \
- and obj.getRole() == pyatspi.ROLE_LIST):
+ if text:
unicodeText = self.getUnicodeText(obj)
# Delete the final space character if we find it. Otherwise,
Added: trunk/test/keystrokes/firefox/codetalks_list.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/codetalks_list.py Thu Mar 5 17:44:20 2009
@@ -0,0 +1,138 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of presentation of Codetalk's list using Firefox.
+"""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
+
+########################################################################
+# Load the demo.
+#
+sequence.append(KeyComboAction("<Control>l"))
+sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
+sequence.append(TypeAction("http://codetalks.org/source/enhanced-html-forms/list.html"))
+sequence.append(KeyComboAction("Return"))
+sequence.append(WaitForDocLoad())
+
+sequence.append(PauseAction(5000))
+
+########################################################################
+# 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 static list of div elements with role 'listitem', and they sit inside a div with role 'list'. The divs contain text: dog, cat, sparrow, wolf! and begin here:'",
+ " VISIBLE: 'Here is a static list of div ele', cursor=1",
+ "SPEECH OUTPUT: 'Here is a static list of div elements with role 'listitem', and they sit inside a div with role 'list'. The divs contain text: dog, cat, sparrow, wolf! and begin here: ",
+ "'"]))
+
+########################################################################
+# Down Arrow.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Down Arrow",
+ ["BRAILLE LINE: 'dog'",
+ " VISIBLE: 'dog', cursor=1",
+ "SPEECH OUTPUT: 'dog list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Down Arrow",
+ ["BRAILLE LINE: 'cat'",
+ " VISIBLE: 'cat', cursor=1",
+ "SPEECH OUTPUT: 'cat list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Down Arrow",
+ ["BRAILLE LINE: 'sparrow'",
+ " VISIBLE: 'sparrow', cursor=1",
+ "SPEECH OUTPUT: 'sparrow list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Down Arrow",
+ ["BRAILLE LINE: 'wolf!'",
+ " VISIBLE: 'wolf!', cursor=1",
+ "SPEECH OUTPUT: 'wolf! list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Down Arrow",
+ ["BRAILLE LINE: '\$Revision: [0-9]* \$'",
+ " VISIBLE: '\$Revision: [0-9]* \$', cursor=1",
+ "SPEECH OUTPUT: '\$Revision: [0-9]* \$'"]))
+
+########################################################################
+# Up Arrow.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Up Arrow",
+ ["BRAILLE LINE: 'wolf!'",
+ " VISIBLE: 'wolf!', cursor=1",
+ "SPEECH OUTPUT: 'wolf! list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Up Arrow",
+ ["BRAILLE LINE: 'sparrow'",
+ " VISIBLE: 'sparrow', cursor=1",
+ "SPEECH OUTPUT: 'sparrow list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Up Arrow",
+ ["BRAILLE LINE: 'cat'",
+ " VISIBLE: 'cat', cursor=1",
+ "SPEECH OUTPUT: 'cat list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Up Arrow",
+ ["BRAILLE LINE: 'dog'",
+ " VISIBLE: 'dog', cursor=1",
+ "SPEECH OUTPUT: 'dog list item'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+ "5. Up Arrow",
+ ["BRAILLE LINE: 'Here is a static list of div elements with role 'listitem', and they sit inside a div with role 'list'. The divs contain text: dog, cat, sparrow, wolf! and begin here:'",
+ " VISIBLE: 'Here is a static list of div ele', cursor=1",
+ "SPEECH OUTPUT: 'Here is a static list of div elements with role 'listitem', and they sit inside a div with role 'list'. The divs contain text: dog, cat, sparrow, wolf! and begin here: ",
+ "'"]))
+
+########################################################################
+# 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]