orca r3480 - in trunk: . test/html test/keystrokes/firefox



Author: joanied
Date: Sun Jan 20 04:46:38 2008
New Revision: 3480
URL: http://svn.gnome.org/viewvc/orca?rev=3480&view=rev

Log:
More regression tests.


Added:
   trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py
Modified:
   trunk/ChangeLog
   trunk/test/html/bugzilla-advanced.html

Modified: trunk/test/html/bugzilla-advanced.html
==============================================================================
--- trunk/test/html/bugzilla-advanced.html	(original)
+++ trunk/test/html/bugzilla-advanced.html	Sun Jan 20 04:46:38 2008
@@ -1754,7 +1754,6 @@
               <tr valign="top">
                 <td align="left">
 
-                  <label for="classification">
                     <select name="classification" multiple="multiple" size="10" id="classification"
                             onchange="doOnSelectProduct(1);">
                       <option value="Admin">Admin
@@ -1775,7 +1774,6 @@
                       <option value="Productivity">Productivity
                       </option>
                     </select>
-                  </label>
                 </td>
               </tr>
 
@@ -1790,7 +1788,6 @@
 
                 
                 <td align="left">
-                  <label for="product" accesskey="p">
                     <select name="product" multiple="multiple" size="10" id="product"
                             onchange="doOnSelectProduct(2);">
                       <option value="accerciser">accerciser</option>
@@ -2236,7 +2233,6 @@
                       <option value="zapping">zapping</option>
                       <option value="zenity">zenity</option>
                     </select>
-                  </label>
                 </td>
               </tr>
 
@@ -2253,7 +2249,6 @@
               <tr valign="top">
                 
                 <td align="left">
-                  <label for="component" accesskey="m">
                     <select name="component" id="component"
                             multiple="multiple" size="10">
                       <option value="abiscan">abiscan</option>
@@ -3713,8 +3708,6 @@
                       <option value="ZIP">ZIP</option>
                       <option value="zvt">zvt</option>
                     </select>
-
-                  </label>
                 </td>
               </tr>
             </table>
@@ -3726,7 +3719,6 @@
 
               </tr>
               <tr valign="top"><td align="left">
-    <label for="version" accesskey="v">
       <select name="version" id="version"
               multiple="multiple" size="10">
         <option value="0.0.1">0.0.1</option>
@@ -4730,7 +4722,6 @@
         <option value="v0.6.x">v0.6.x</option>
         <option value="v0.7.x">v0.7.x</option>
       </select>
-    </label>
   </td>
               </tr>
             </table>
@@ -4742,7 +4733,6 @@
                 <th align="left"><u>T</u>arget Milestone:</th>
               </tr>
               <tr valign="top"><td align="left">
-    <label for="target_milestone" accesskey="t">
       <select name="target_milestone" id="target_milestone"
               multiple="multiple" size="10">
 
@@ -5394,7 +5384,6 @@
         <option value="2.21.92">2.21.92</option>
         <option value="FUTURE">FUTURE</option>
       </select>
-    </label>
   </td>
               </tr>
 
@@ -5494,8 +5483,6 @@
           <th align="left">St<u>a</u>tus:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="bug_status" accesskey="a">
-
       <select name="bug_status" id="bug_status"
               multiple="multiple" size="7">
         <option value="UNCONFIRMED" selected>UNCONFIRMED</option>
@@ -5508,7 +5495,6 @@
         <option value="VERIFIED">VERIFIED</option>
         <option value="CLOSED">CLOSED</option>
       </select>
-    </label>
   </td>
         </tr>
 
@@ -5523,7 +5509,6 @@
         </tr>
 
         <tr valign="top"><td align="left">
-    <label for="resolution" accesskey="r">
       <select name="resolution" id="resolution"
               multiple="multiple" size="7">
         <option value="FIXED">FIXED</option>
@@ -5541,7 +5526,6 @@
         <option value="NOTXIMIAN">NOTXIMIAN</option>
         <option value="---">---</option>
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -5553,8 +5537,6 @@
           <th align="left">S<u>e</u>verity:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="bug_severity" accesskey="e">
-
       <select name="bug_severity" id="bug_severity"
               multiple="multiple" size="7">
         <option value="blocker">blocker</option>
@@ -5566,7 +5548,6 @@
         <option value="trivial">trivial</option>
         <option value="enhancement">enhancement</option>
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -5578,8 +5559,6 @@
           <th align="left">Pr<u>i</u>ority:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="priority" accesskey="i">
-
       <select name="priority" id="priority"
               multiple="multiple" size="7">
         <option value="Immediate">Immediate</option>
@@ -5589,7 +5568,6 @@
         <option value="Low">Low</option>
 
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -5601,8 +5579,7 @@
           <th align="left"><u>O</u>S:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="op_sys" accesskey="o">
-      <select name="op_sys" id="op_sys"
+       <select name="op_sys" id="op_sys"
               multiple="multiple" size="7">
         <option value="All">All</option>
         <option value="AIX">AIX</option>
@@ -5630,7 +5607,6 @@
 
         <option value="other">other</option>
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -5671,19 +5647,14 @@
     <td>
       <input type="checkbox" name="emailassigned_to1"
              id="emailassigned_to1" value="1" checked>
-      <label for="emailassigned_to1">
         the bug assignee
-      </label>
-
     </td>
   </tr>
   <tr>
     <td>
       <input type="checkbox" name="emailreporter1"
              id="emailreporter1" value="1">
-      <label for="emailreporter1">
         the reporter
-      </label>
     </td>
 
   </tr>
@@ -5691,9 +5662,7 @@
     <td>
       <input type="checkbox" name="emailqa_contact1"
              id="emailqa_contact1" value="1">
-      <label for="emailqa_contact1">
         the QA contact
-      </label>
     </td>
   </tr>
 
@@ -5701,9 +5670,7 @@
     <td>
       <input type="checkbox" name="emailcc1"
              id="emailcc1" value="1">
-      <label for="emailcc1">
         a CC list member
-      </label>
     </td>
   </tr>
   <tr>
@@ -5711,9 +5678,7 @@
     <td>
         <input type="checkbox" name="emaillongdesc1"
                id="emaillongdesc1" value="1">
-      <label for="emaillongdesc1">
         a commenter
-      </label>
     </td>
   </tr>
   <tr>
@@ -5755,9 +5720,7 @@
     <td>
       <input type="checkbox" name="emailassigned_to2"
              id="emailassigned_to2" value="1" checked>
-      <label for="emailassigned_to2">
         the bug assignee
-      </label>
     </td>
   </tr>
   <tr>
@@ -5765,9 +5728,7 @@
     <td>
       <input type="checkbox" name="emailreporter2"
              id="emailreporter2" value="1" checked>
-      <label for="emailreporter2">
         the reporter
-      </label>
     </td>
   </tr>
   <tr>
@@ -5775,9 +5736,7 @@
 
       <input type="checkbox" name="emailqa_contact2"
              id="emailqa_contact2" value="1" checked>
-      <label for="emailqa_contact2">
         the QA contact
-      </label>
     </td>
   </tr>
   <tr>
@@ -5785,19 +5744,14 @@
       <input type="checkbox" name="emailcc2"
              id="emailcc2" value="1" checked>
 
-      <label for="emailcc2">
         a CC list member
-      </label>
     </td>
   </tr>
   <tr>
     <td>
         <input type="checkbox" name="emaillongdesc2"
                id="emaillongdesc2" value="1">
-      <label for="emaillongdesc2">
-
         a commenter
-      </label>
     </td>
   </tr>
   <tr>
@@ -5924,7 +5878,6 @@
           <th align="left">GNOME version:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="gnome_version" accesskey="a">
       <select name="gnome_version" id="gnome_version"
               multiple="multiple" size="7">
 
@@ -5945,7 +5898,6 @@
         <option value="2.19/2.20">2.19/2.20</option>
         <option value="2.21/2.22">2.21/2.22</option>
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -5957,7 +5909,6 @@
           <th align="left">GNOME target:</th>
         </tr>
         <tr valign="top"><td align="left">
-    <label for="gnome_target" accesskey="a">
       <select name="gnome_target" id="gnome_target"
               multiple="multiple" size="7">
 
@@ -5976,7 +5927,6 @@
         <option value="2.22.x">2.22.x</option>
 
       </select>
-    </label>
   </td>
         </tr>
       </table>
@@ -6005,10 +5955,7 @@
   &nbsp;&nbsp;&nbsp;
   <input type="checkbox" id="remasdefault"
          name="remtype" value="asdefault">
-  <label for="remasdefault">
     and remember these as my default search options
-  </label>
-
 </p>
 
 <hr>
@@ -6027,9 +5974,7 @@
       <td>
         <input type="checkbox" id="negate0"
              name="negate0" value="1">
-        <label for="negate0">
           Not (negate this whole chart)
-        </label>
       </td>
     </tr>
     <tr>

Added: trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/firefox/label_guess_bugzilla_search.py	Sun Jan 20 04:46:38 2008
@@ -0,0 +1,562 @@
+# -*- coding: utf-8 -*-
+#!/usr/bin/python
+
+"""Test of line navigation output of Firefox on bugzilla's advanced
+search page.
+"""
+
+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 + "bugzilla-advanced.html"))
+sequence.append(KeyComboAction("Return"))
+
+sequence.append(WaitForDocLoad())
+
+sequence.append(WaitForFocus("Search for bugs",
+                             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:  'Home Link Image Bugzilla'",
+     "     VISIBLE:  'Home Link Image Bugzilla', cursor=1",
+     "SPEECH OUTPUT: 'Home link image Bugzilla'"]))
+
+########################################################################
+# Press Insert+Tab to move from form field to form field.
+#
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(PauseAction(500))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Summary: contains all of the words/strings Combo  $l Search Button'",
+     "     VISIBLE:  'contains all of the words/string', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Summary: contains all of the words/strings combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Summary: contains all of the words/strings Combo  $l Search Button'",
+     "     VISIBLE:  ' $l Search Button', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Summary: contains all of the words/strings Combo  $l Search Button'",
+     "     VISIBLE:  'Search Button', cursor=1",
+     "SPEECH OUTPUT: 'Search button'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Admin List'",
+     "     VISIBLE:  'Admin List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Classification: Admin  multi-select List with 8 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'accerciser List'",
+     "     VISIBLE:  'accerciser List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Product: accerciser multi-select List with 379 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'abiscan List'",
+     "     VISIBLE:  'abiscan List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Component abiscan multi-select List with 1248 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '0.0.1 List'",
+     "     VISIBLE:  '0.0.1 List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Version: 0.0.1 multi-select List with 857 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '--- List'",
+     "     VISIBLE:  '--- List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Target Milestone: --- multi-select List with 555 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'AÂComment: contains the string Combo  $l'",
+     "     VISIBLE:  ' contains the string Combo  $l', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'AÂComment: contains the string combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'AÂComment: contains the string Combo  $l'",
+     "     VISIBLE:  '  $l', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Whiteboard: contains all of the words/strings Combo  $l'",
+     "     VISIBLE:  'contains all of the words/string', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Whiteboard: contains all of the words/strings combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Whiteboard: contains all of the words/strings Combo  $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Keywords Link : contains all of the keywords Combo  $l'",
+     "     VISIBLE:  'contains all of the keywords Com', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Keywords: contains all of the keywords combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Keywords Link : contains all of the keywords Combo  $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'UNCONFIRMED List'",
+     "     VISIBLE:  'UNCONFIRMED List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Status: UNCONFIRMED multi-select List with 8 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'FIXED List'",
+     "     VISIBLE:  'FIXED List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Resolution: FIXED multi-select List with 12 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'blocker List'",
+     "     VISIBLE:  'blocker List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Severity: blocker multi-select List with 7 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Immediate List'",
+     "     VISIBLE:  'Immediate List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Priority: Immediate multi-select List with 5 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'All List'",
+     "     VISIBLE:  'All List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'OS: All multi-select List with 21 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '<x> CheckBox  the bug assignee'",
+     "     VISIBLE:  '<x> CheckBox  the bug assignee', cursor=1",
+     "SPEECH OUTPUT: 'the bug assignee check box checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  the reporter'",
+     "     VISIBLE:  '< > CheckBox  the reporter', cursor=1",
+     "SPEECH OUTPUT: 'the reporter check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  the QA contact'",
+     "     VISIBLE:  '< > CheckBox  the QA contact', cursor=1",
+     "SPEECH OUTPUT: 'the QA contact check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  a CC list member'",
+     "     VISIBLE:  '< > CheckBox  a CC list member', cursor=1",
+     "SPEECH OUTPUT: 'a CC list member check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  a commenter'",
+     "     VISIBLE:  '< > CheckBox  a commenter', cursor=1",
+     "SPEECH OUTPUT: 'a commenter check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(PauseAction(500))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'contains Combo'",
+     "     VISIBLE:  'contains Combo', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'a commenter contains combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(PauseAction(500))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '<x> CheckBox  the bug assignee'",
+     "     VISIBLE:  '<x> CheckBox  the bug assignee', cursor=1",
+     "SPEECH OUTPUT: 'the bug assignee check box checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '<x> CheckBox  the reporter'",
+     "     VISIBLE:  '<x> CheckBox  the reporter', cursor=1",
+     "SPEECH OUTPUT: 'the reporter check box checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '<x> CheckBox  the QA contact'",
+     "     VISIBLE:  '<x> CheckBox  the QA contact', cursor=1",
+     "SPEECH OUTPUT: 'the QA contact check box checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '<x> CheckBox  a CC list member'",
+     "     VISIBLE:  '<x> CheckBox  a CC list member', cursor=1",
+     "SPEECH OUTPUT: 'a CC list member check box checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  a commenter'",
+     "     VISIBLE:  '< > CheckBox  a commenter', cursor=1",
+     "SPEECH OUTPUT: 'a commenter check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'contains Combo'",
+     "     VISIBLE:  'contains Combo', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'a commenter contains combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(PauseAction(500))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BUG? - It would be nice to not guess the text that follows the combobox in this case.",
+     "BRAILLE LINE:  'Only include Combo bugs numbered:  $l'",
+     "     VISIBLE:  'Only include Combo bugs numbered', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'bugs numbered: Only include combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(PauseAction(500))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Only include Combo bugs numbered:  $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'bugs numbered: text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  ' $l  and Now $l'",
+     "     VISIBLE:  ' $l  and Now $l', cursor=1",
+     "SPEECH OUTPUT: 'Only bugs changed between: text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  ' $l  and Now $l'",
+     "     VISIBLE:  ' $l  and Now $l', cursor=10",
+     "SPEECH OUTPUT: 'and text Now'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '[Bug creation] List'",
+     "     VISIBLE:  '[Bug creation] List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'where one or more of the following changed: [Bug creation] multi-select List with 26 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=1",
+     "SPEECH OUTPUT: 'and the new value was: text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Unspecified List'",
+     "     VISIBLE:  'Unspecified List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'GNOME version: Unspecified multi-select List with 14 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Unspecified List'",
+     "     VISIBLE:  'Unspecified List', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'GNOME target: Unspecified multi-select List with 12 items'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Sort results by: Reuse same sort as last time Combo'",
+     "     VISIBLE:  'Reuse same sort as last time Com', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Sort results by: Reuse same sort as last time combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'Search Button'",
+     "     VISIBLE:  'Search Button', cursor=1",
+     "SPEECH OUTPUT: 'Search button'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  'ÂÂÂ < > CheckBox  and remember these as my default search options'",
+     "     VISIBLE:  'Â < > CheckBox  and remember th', cursor=1",
+     "SPEECH OUTPUT: 'and remember these as my default search options check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '< > CheckBox  Not (negate this whole chart)'",
+     "     VISIBLE:  '< > CheckBox  Not (negate this w', cursor=1",
+     "SPEECH OUTPUT: 'Not (negate this whole chart) check box not checked'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '--- Combo --- Combo  $l Or Button'",
+     "     VISIBLE:  '--- Combo --- Combo  $l Or Butto', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: 'Not (negate this whole chart) --- combo box'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyPressAction(0, None, "KP_Insert"))
+sequence.append(KeyComboAction("Tab"))
+sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
+sequence.append(utils.AssertPresentationAction(
+    "Next form field", 
+    ["BRAILLE LINE:  '--- Combo --- Combo  $l Or Button'",
+     "     VISIBLE:  '--- Combo  $l Or Button', cursor=1",
+     "SPEECH OUTPUT: ''",
+     "SPEECH OUTPUT: '--- combo box'"]))
+
+########################################################################
+# 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.start()



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