[orca] Updated dojo regression tests.



commit 9df3424477102341448537948a188b18dffd8fc4
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun Aug 16 16:34:26 2009 -0400

    Updated dojo regression tests.
    
    Can you say "moving target"? I knew you could.

 test/harness/utils.py                          |    4 ++--
 test/keystrokes/firefox/dojo_bug_570566.py     |    8 ++++----
 test/keystrokes/firefox/dojo_combo_box.py      |   24 ++++++++++++------------
 test/keystrokes/firefox/dojo_spinner.py        |    7 ++++++-
 test/keystrokes/firefox/dojo_tabcontainer.py   |    2 +-
 test/keystrokes/firefox/line_nav_bug_555055.py |    8 +++-----
 6 files changed, 28 insertions(+), 25 deletions(-)
---
diff --git a/test/harness/utils.py b/test/harness/utils.py
index e7a1987..7b0e5a8 100644
--- a/test/harness/utils.py
+++ b/test/harness/utils.py
@@ -13,8 +13,8 @@ dbusOrcaLogging = dbus.Interface(dbusOrca, 'org.gnome.Orca.Logging')
 DojoNightlyURLPrefix="http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/";
 #DojoURLPrefix="http://localhost/apache2-default/dojo-release-1.1.0b2/dijit/tests/";
 #DojoURLPrefix="http://bashautomation.com/dojo-release-1.1.0b2/dijit/tests/";
-DojoJuly08URLPrefix="http://archive.dojotoolkit.org/dojo-2008-07-22/dojotoolkit/dijit/tests/";
-DojoURLPrefix=DojoJuly08URLPrefix
+DojoJuly09URLPrefix="http://archive.dojotoolkit.org/dojo-2009-08-05/dojotoolkit/dijit/tests/";
+DojoURLPrefix=DojoJuly09URLPrefix
 
 # Where to find our local HTML tests.
 #
diff --git a/test/keystrokes/firefox/dojo_bug_570566.py b/test/keystrokes/firefox/dojo_bug_570566.py
index d9077f7..b265d3e 100644
--- a/test/keystrokes/firefox/dojo_bug_570566.py
+++ b/test/keystrokes/firefox/dojo_bug_570566.py
@@ -57,7 +57,7 @@ sequence.append(utils.AssertPresentationAction(
     "1. Up Arrow", 
     ["BRAILLE LINE:  'Created from div h2'",
      "     VISIBLE:  'Created from div h2', cursor=1",
-     "SPEECH OUTPUT: 'Created from div heading level 2 heading level 2'"]))
+     "SPEECH OUTPUT: 'Created from div heading level 2'"]))
 
 #sequence.append(utils.StartRecordingAction())
 #sequence.append(KeyComboAction("Up"))
@@ -72,9 +72,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "3. Up Arrow", 
-    ["BRAILLE LINE:  ''",
-     "     VISIBLE:  '', cursor=1",
-     "SPEECH OUTPUT: 'blank'"]))
+    ["BRAILLE LINE:  ' '",
+     "     VISIBLE:  ' ', cursor=1",
+     "SPEECH OUTPUT: ' '"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
diff --git a/test/keystrokes/firefox/dojo_combo_box.py b/test/keystrokes/firefox/dojo_combo_box.py
index 9bb923a..337a8e2 100644
--- a/test/keystrokes/firefox/dojo_combo_box.py
+++ b/test/keystrokes/firefox/dojo_combo_box.py
@@ -38,8 +38,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Tab"))
 sequence.append(utils.AssertPresentationAction(
     "Tab to the first combo box", 
-    ["BRAILLE LINE:  'â?? US State test 1 California $l'",
-     "     VISIBLE:  'â?? US State test 1 California $l', cursor=0",
+    ["BRAILLE LINE:  'â??US State test 1 California $l'",
+     "     VISIBLE:  'â??US State test 1 California $l', cursor=0",
      "SPEECH OUTPUT: 'US State test 1 combo box US State test 1 text California selected'"]))
 
 ########################################################################
@@ -51,10 +51,10 @@ sequence.append(PauseAction(1000))
 sequence.append(utils.AssertPresentationAction(
     "Replace existing text with a 'C'", 
     ["BUG? - At this point, the entry expands into a combo box with three items showing. We speak them all. We should instead indicate that this object is expanded, similar to what we do with autocompletes.",
-     "BRAILLE LINE:  'â?? US State test 1 California $l'",
-     "     VISIBLE:  'â?? US State test 1 California $l', cursor=0",
-     "BRAILLE LINE:  'â?? US State test 1 C $l'",
-     "     VISIBLE:  'â?? US State test 1 C $l', cursor=0",
+     "BRAILLE LINE:  'â??US State test 1 California $l'",
+     "     VISIBLE:  'â??US State test 1 California $l', cursor=0",
+     "BRAILLE LINE:  'â??US State test 1 C $l'",
+     "     VISIBLE:  'â??US State test 1 C $l', cursor=0",
      "SPEECH OUTPUT: 'â?¢ Californiaâ?¢ Coloradoâ?¢ Connecticut'"]))
 
 ########################################################################
@@ -65,8 +65,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "1. Down Arrow", 
-    ["BRAILLE LINE:  'â?? US State test 1 C $l'",
-     "     VISIBLE:  'â?? US State test 1 C $l', cursor=0",
+    ["BRAILLE LINE:  'â??US State test 1 C $l'",
+     "     VISIBLE:  'â??US State test 1 C $l', cursor=0",
      "BRAILLE LINE:  'â?¢ California'",
      "     VISIBLE:  'â?¢ California', cursor=1",
      "SPEECH OUTPUT: 'â?¢ California'"]))
@@ -144,8 +144,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Escape"))
 sequence.append(utils.AssertPresentationAction(
     "Escape", 
-    ["BRAILLE LINE:  'â?? US State test 1 California $l'",
-     "     VISIBLE:  'â?? US State test 1 California $l', cursor=0",
+    ["BRAILLE LINE:  'â??US State test 1 California $l'",
+     "     VISIBLE:  'â??US State test 1 California $l', cursor=0",
      "SPEECH OUTPUT: 'US State test 1 combo box US State test 1 text California selected'"]))
 
 ########################################################################
@@ -156,8 +156,8 @@ sequence.append(KeyComboAction("KP_Enter"))
 sequence.append(PauseAction(3000))
 sequence.append(utils.AssertPresentationAction(
     "Basic Where Am I - Combo box collapsed back into an entry", 
-    ["BRAILLE LINE:  'â?? US State test 1 California $l'",
-     "     VISIBLE:  'â?? US State test 1 California $l', cursor=0",
+    ["BRAILLE LINE:  'â??US State test 1 California $l'",
+     "     VISIBLE:  'â??US State test 1 California $l', cursor=0",
      "SPEECH OUTPUT: 'US State test 1 text alifornia selected'"]))
 
 ########################################################################
diff --git a/test/keystrokes/firefox/dojo_spinner.py b/test/keystrokes/firefox/dojo_spinner.py
index fec09c5..7c74bac 100644
--- a/test/keystrokes/firefox/dojo_spinner.py
+++ b/test/keystrokes/firefox/dojo_spinner.py
@@ -17,9 +17,14 @@ sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
 ########################################################################
 # Load the dojo spinner demo.
 #
+# NOTE: After 5 Aug 2009, the test sets the required state to False by
+# Default. The state can be toggled by pressing a button, which is NOT
+# in the Tab order. :-( Therefore, for now, use the most recent archive
+# which has required set to True.
+#
 sequence.append(KeyComboAction("<Control>l"))
 sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
-sequence.append(TypeAction(utils.DojoNightlyURLPrefix + "form/test_Spinner.html"))
+sequence.append(TypeAction(utils.DojoURLPrefix + "form/test_Spinner.html"))
 sequence.append(KeyComboAction("Return"))
 sequence.append(WaitForDocLoad())
 sequence.append(WaitForFocus("Dojo Spinner Widget Test", acc_role=pyatspi.ROLE_DOCUMENT_FRAME))
diff --git a/test/keystrokes/firefox/dojo_tabcontainer.py b/test/keystrokes/firefox/dojo_tabcontainer.py
index 19dbc3d..bf337d2 100644
--- a/test/keystrokes/firefox/dojo_tabcontainer.py
+++ b/test/keystrokes/firefox/dojo_tabcontainer.py
@@ -19,7 +19,7 @@ sequence.append(WaitForWindowActivate(utils.firefoxFrameNames, None))
 #
 sequence.append(KeyComboAction("<Control>l"))
 sequence.append(WaitForFocus(acc_role=pyatspi.ROLE_ENTRY))
-sequence.append(TypeAction(utils.DojoNightlyURLPrefix + "layout/test_TabContainer.html"))
+sequence.append(TypeAction(utils.DojoURLPrefix + "layout/test_TabContainer.html"))
 sequence.append(KeyComboAction("Return"))
 sequence.append(WaitForDocLoad())
 sequence.append(WaitForFocus("TabContainer Demo", acc_role=pyatspi.ROLE_DOCUMENT_FRAME))
diff --git a/test/keystrokes/firefox/line_nav_bug_555055.py b/test/keystrokes/firefox/line_nav_bug_555055.py
index a664bc4..3ea5cb5 100644
--- a/test/keystrokes/firefox/line_nav_bug_555055.py
+++ b/test/keystrokes/firefox/line_nav_bug_555055.py
@@ -171,11 +171,9 @@ 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: '",
-     "  '"]))
+    ["BRAILLE LINE:  ''",
+     "     VISIBLE:  '', cursor=1",
+     "SPEECH OUTPUT: 'blank'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))



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