orca r4547 - trunk/test/keystrokes/firefox



Author: joanied
Date: Sun Feb 15 00:06:27 2009
New Revision: 4547
URL: http://svn.gnome.org/viewvc/orca?rev=4547&view=rev

Log:
Added some pauses to make these tests more reliable.


Modified:
   trunk/test/keystrokes/firefox/bug_568631.py
   trunk/test/keystrokes/firefox/dojo_bug_570566.py

Modified: trunk/test/keystrokes/firefox/bug_568631.py
==============================================================================
--- trunk/test/keystrokes/firefox/bug_568631.py	(original)
+++ trunk/test/keystrokes/firefox/bug_568631.py	Sun Feb 15 00:06:27 2009
@@ -44,7 +44,7 @@
 # Tab to the About link
 #
 for i in range(25):
-    sequence.append(KeyComboAction("Tab", 500))
+    sequence.append(KeyComboAction("Tab", 1000))
 
 # Just a little extra wait to let some events get through.
 #
@@ -52,6 +52,8 @@
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Tab"))
+sequence.append(WaitForFocus("About", acc_role=pyatspi.ROLE_LINK))
+sequence.append(PauseAction(2000))
 sequence.append(utils.AssertPresentationAction(
     "Tab", 
     ["BRAILLE LINE:  '2. About",
@@ -63,7 +65,8 @@
 # Press Return to active the link
 #
 sequence.append(utils.StartRecordingAction())
-sequence.append(KeyComboAction("Return", 1000))
+sequence.append(KeyComboAction("Return"))
+sequence.append(PauseAction(1000))
 sequence.append(utils.AssertPresentationAction(
     "Return",
     ["BRAILLE LINE:  'About h1'",
@@ -77,6 +80,7 @@
 #
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
+sequence.append(PauseAction(1000))
 sequence.append(utils.AssertPresentationAction(
     "Line Down", 
     ["BRAILLE LINE:  'Orca is a free, open source, flexible, extensible, and powerful assistive'",

Modified: trunk/test/keystrokes/firefox/dojo_bug_570566.py
==============================================================================
--- trunk/test/keystrokes/firefox/dojo_bug_570566.py	(original)
+++ trunk/test/keystrokes/firefox/dojo_bug_570566.py	Sun Feb 15 00:06:27 2009
@@ -50,6 +50,7 @@
 #
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
+sequence.append(PauseAction(2000))
 sequence.append(utils.AssertPresentationAction(
     "1. Up Arrow", 
     ["BRAILLE LINE:  'Created from div h2'",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]