[orca] Python 3.6 invalid escape sequence deprecation fixes



commit 89fb65336a4267909679e5bdc20be6909682eed8
Author: Ville Skyttä <ville skytta iki fi>
Date:   Fri Mar 24 00:19:49 2017 +0200

    Python 3.6 invalid escape sequence deprecation fixes
    
    https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780484

 src/orca/flat_review.py                            |    2 +-
 src/orca/script_utilities.py                       |    8 ++--
 src/orca/scripts/terminal/script_utilities.py      |    2 +-
 src/orca/scripts/toolkits/GAIL/script_utilities.py |    2 +-
 src/orca/scripts/toolkits/gtk/script_utilities.py  |    2 +-
 src/orca/scripts/web/script_utilities.py           |   10 ++--
 src/orca/speechdispatcherfactory.py                |    4 +-
 .../firefox/label_inference_bugzilla_search.py     |    2 +-
 .../firefox/line_nav_bugzilla_search_down.py       |    2 +-
 .../firefox/line_nav_bugzilla_search_up.py         |    2 +-
 test/keystrokes/firefox/line_nav_iframes_nested.py |   12 +++---
 test/keystrokes/firefox/line_nav_wiki_down.py      |   26 ++++++------
 test/keystrokes/firefox/line_nav_wiki_up.py        |   28 +++++++-------
 test/keystrokes/firefox/say_all_wiki.py            |    4 +-
 test/keystrokes/firefox/say_all_wiki_no_context.py |    4 +-
 test/keystrokes/firefox/selection_wiki.py          |   10 ++--
 test/keystrokes/firefox/ui_role_accel_label.py     |    6 +-
 test/keystrokes/firefox/ui_role_menu_bar.py        |    6 +-
 .../gnome-clocks/stop_watch_flat_review.py         |   24 ++++++------
 test/keystrokes/gnome-clocks/timer_flat_review.py  |   16 ++++----
 test/keystrokes/gnome-terminal/nano.py             |    2 +-
 test/keystrokes/gnome-terminal/nano_flat_review.py |    6 +-
 test/keystrokes/gnome-terminal/vim-append.py       |   42 ++++++++++----------
 23 files changed, 111 insertions(+), 111 deletions(-)
---
diff --git a/src/orca/flat_review.py b/src/orca/flat_review.py
index 26e86ff..d7e7d8c 100644
--- a/src/orca/flat_review.py
+++ b/src/orca/flat_review.py
@@ -123,7 +123,7 @@ class Word:
 class Zone:
     """Represents text that is a portion of a single horizontal line."""
 
-    WORDS_RE = re.compile("(\S+\s*)", re.UNICODE)
+    WORDS_RE = re.compile(r"(\S+\s*)", re.UNICODE)
 
     def __init__(self, accessible, string, x, y, width, height, role=None):
         """Creates a new Zone.
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 7229448..379713d 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -75,7 +75,7 @@ class Utilities:
          '\u2085', '\u2086', '\u2087', '\u2088', '\u2089']
 
     flags = re.UNICODE
-    WORDS_RE = re.compile("(\W+)", flags)
+    WORDS_RE = re.compile(r"(\W+)", flags)
     SUPERSCRIPTS_RE = re.compile("[%s]+" % "".join(SUPERSCRIPT_DIGITS), flags)
     SUBSCRIPTS_RE = re.compile("[%s]+" % "".join(SUBSCRIPT_DIGITS), flags)
 
@@ -2998,7 +2998,7 @@ class Utilities:
         """
 
         return character in self._script.whitespace \
-               or character in '!*+,-./:;<=>?@[\]^_{|}' \
+               or character in r'!*+,-./:;<=>?@[\]^_{|}' \
                or character == self._script.NO_BREAK_SPACE_CHARACTER
 
     def intersectingRegion(self, obj1, obj2, coordType=None):
@@ -3467,7 +3467,7 @@ class Utilities:
         return False
 
     def rgbFromString(self, attributeValue):
-        regex = re.compile("rgb|[^\w,]", re.IGNORECASE)
+        regex = re.compile(r"rgb|[^\w,]", re.IGNORECASE)
         string = re.sub(regex, "", attributeValue)
         red, green, blue = string.split(",")
 
@@ -4586,7 +4586,7 @@ class Utilities:
             return False
         if event.any_data == contents:
             return True
-        if bool(re.search("\w", event.any_data)) != bool(re.search("\w", contents)):
+        if bool(re.search(r"\w", event.any_data)) != bool(re.search(r"\w", contents)):
             return False
 
         # HACK: If the application treats each paragraph as a separate object,
diff --git a/src/orca/scripts/terminal/script_utilities.py b/src/orca/scripts/terminal/script_utilities.py
index ae36bdd..986cdc9 100644
--- a/src/orca/scripts/terminal/script_utilities.py
+++ b/src/orca/scripts/terminal/script_utilities.py
@@ -179,7 +179,7 @@ class Utilities(script_utilities.Utilities):
 
             keyString, mods = self.lastKeyAndModifiers()
             if keyString in ["Return", "Tab", "space", " "]:
-                return re.search("[^\d\s]", event.any_data)
+                return re.search(r"[^\d\s]", event.any_data)
             if mods & keybindings.ALT_MODIFIER_MASK:
                 return True
             if len(event.any_data) > 1 and self.lastInputEventWasPrintableKey():
diff --git a/src/orca/scripts/toolkits/GAIL/script_utilities.py 
b/src/orca/scripts/toolkits/GAIL/script_utilities.py
index 0739f3d..e4b74a6 100644
--- a/src/orca/scripts/toolkits/GAIL/script_utilities.py
+++ b/src/orca/scripts/toolkits/GAIL/script_utilities.py
@@ -56,7 +56,7 @@ class Utilities(script_utilities.Utilities):
         return rv
 
     def rgbFromString(self, attributeValue):
-        regex = re.compile("rgb|[^\w,]", re.IGNORECASE)
+        regex = re.compile(r"rgb|[^\w,]", re.IGNORECASE)
         string = re.sub(regex, "", attributeValue)
         red, green, blue = string.split(",")
 
diff --git a/src/orca/scripts/toolkits/gtk/script_utilities.py 
b/src/orca/scripts/toolkits/gtk/script_utilities.py
index f46653f..78b2468 100644
--- a/src/orca/scripts/toolkits/gtk/script_utilities.py
+++ b/src/orca/scripts/toolkits/gtk/script_utilities.py
@@ -183,7 +183,7 @@ class Utilities(script_utilities.Utilities):
         return rv
 
     def rgbFromString(self, attributeValue):
-        regex = re.compile("rgb|[^\w,]", re.IGNORECASE)
+        regex = re.compile(r"rgb|[^\w,]", re.IGNORECASE)
         string = re.sub(regex, "", attributeValue)
         red, green, blue = string.split(",")
 
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 5728da2..6422da7 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -873,7 +873,7 @@ class Utilities(script_utilities.Utilities):
         spans = []
         charCount = text.characterCount
         if boundary == pyatspi.TEXT_BOUNDARY_SENTENCE_START:
-            spans = [m.span() for m in re.finditer("\S*[^\.\?\!]+((?<!\w)[\.\?\!]+(?!\w)|\S*)", allText)]
+            spans = [m.span() for m in re.finditer(r"\S*[^\.\?\!]+((?<!\w)[\.\?\!]+(?!\w)|\S*)", allText)]
         elif boundary is not None:
             spans = [m.span() for m in re.finditer("[^\n\r]+", allText)]
         if not spans:
@@ -889,7 +889,7 @@ class Utilities(script_utilities.Utilities):
         if string and boundary in [pyatspi.TEXT_BOUNDARY_SENTENCE_START, None]:
             return string, rangeStart, rangeEnd
 
-        words = [m.span() for m in re.finditer("[^\s\-\ufffc]+", string)]
+        words = [m.span() for m in re.finditer("[^\\s\\-\ufffc]+", string)]
         words = list(map(lambda x: (x[0] + rangeStart, x[1] + rangeStart), words))
         if boundary == pyatspi.TEXT_BOUNDARY_WORD_START:
             spans = list(filter(_inThisSpan, words))
@@ -942,7 +942,7 @@ class Utilities(script_utilities.Utilities):
             and not obj.getState().contains(pyatspi.STATE_EDITABLE):
             allText = text.getText(0, -1)
             if obj.getRole() in [pyatspi.ROLE_LIST_ITEM, pyatspi.ROLE_HEADING] \
-               or not (re.search("\w", allText) and self.isTextBlockElement(obj)):
+               or not (re.search(r"\w", allText) and self.isTextBlockElement(obj)):
                 string, start, end = allText, 0, text.characterCount
                 s = string.replace(self.EMBEDDED_OBJECT_CHARACTER, "[OBJ]").replace("\n", "\\n")
                 msg = "WEB: Results for text at offset %i for %s using %s:\n" \
@@ -1093,7 +1093,7 @@ class Utilities(script_utilities.Utilities):
             if 0 <= xStart <= 5:
                 xString = " ".join(xString.split()[1:])
 
-            match = re.search("\S[\.\!\?]+(\s|\Z)", xString)
+            match = re.search(r"\S[\.\!\?]+(\s|\Z)", xString)
             return match is not None
 
         # Check for things in the same sentence before this object.
@@ -1482,7 +1482,7 @@ class Utilities(script_utilities.Utilities):
         if not text:
             return False
 
-        return bool(re.search("\w", text.getText(0, -1)))
+        return bool(re.search(r"\w", text.getText(0, -1)))
 
     def updateCachedTextSelection(self, obj):
         if not self.inDocumentContent(obj):
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index 1a53882..70c95eb 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -65,8 +65,8 @@ else:
     else:
         _speechd_version_ok = True
 
-PUNCTUATION = re.compile('[^\w\s]', re.UNICODE)
-ELLIPSIS = re.compile('(\342\200\246|(?<!\.)\.{3,4}(?=(\s|\Z)))')
+PUNCTUATION = re.compile(r'[^\w\s]', re.UNICODE)
+ELLIPSIS = re.compile('(\342\200\246|(?<!\\.)\\.{3,4}(?=(\\s|\\Z)))')
 
 class SpeechServer(speechserver.SpeechServer):
     # See the parent class for documentation.
diff --git a/test/keystrokes/firefox/label_inference_bugzilla_search.py 
b/test/keystrokes/firefox/label_inference_bugzilla_search.py
index dbb6b93..19d24b8 100644
--- a/test/keystrokes/firefox/label_inference_bugzilla_search.py
+++ b/test/keystrokes/firefox/label_inference_bugzilla_search.py
@@ -474,7 +474,7 @@ sequence.append(KeyComboAction("Tab"))
 sequence.append(utils.AssertPresentationAction(
     "47. Tab",
     ["BRAILLE LINE:  '< > Not (negate this whole chart) check box'",
-     "     VISIBLE:  '< > Not \(negate this whole chart', cursor=1",
+     "     VISIBLE:  '< > Not \\(negate this whole chart', cursor=1",
      "SPEECH OUTPUT: 'Not (negate this whole chart) check box not checked.'"]))
 
 sequence.append(utils.StartRecordingAction())
diff --git a/test/keystrokes/firefox/line_nav_bugzilla_search_down.py 
b/test/keystrokes/firefox/line_nav_bugzilla_search_down.py
index d92f2cf..ac8aa71 100644
--- a/test/keystrokes/firefox/line_nav_bugzilla_search_down.py
+++ b/test/keystrokes/firefox/line_nav_bugzilla_search_down.py
@@ -591,7 +591,7 @@ sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "66. Line Down",
     ["BRAILLE LINE:  '< > Not (negate this whole chart) check box'",
-     "     VISIBLE:  '< > Not \(negate this whole chart', cursor=1",
+     "     VISIBLE:  '< > Not \\(negate this whole chart', cursor=1",
      "SPEECH OUTPUT: 'Not (negate this whole chart) check box not checked.'"]))
 
 sequence.append(utils.StartRecordingAction())
diff --git a/test/keystrokes/firefox/line_nav_bugzilla_search_up.py 
b/test/keystrokes/firefox/line_nav_bugzilla_search_up.py
index b0908e0..f23add3 100644
--- a/test/keystrokes/firefox/line_nav_bugzilla_search_up.py
+++ b/test/keystrokes/firefox/line_nav_bugzilla_search_up.py
@@ -54,7 +54,7 @@ sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "4. Line Up",
     ["BRAILLE LINE:  '< > Not (negate this whole chart) check box'",
-     "     VISIBLE:  '< > Not \(negate this whole chart', cursor=1",
+     "     VISIBLE:  '< > Not \\(negate this whole chart', cursor=1",
      "SPEECH OUTPUT: 'Not (negate this whole chart) check box not checked.'"]))
 
 sequence.append(utils.StartRecordingAction())
diff --git a/test/keystrokes/firefox/line_nav_iframes_nested.py 
b/test/keystrokes/firefox/line_nav_iframes_nested.py
index a5bb534..d62cc07 100644
--- a/test/keystrokes/firefox/line_nav_iframes_nested.py
+++ b/test/keystrokes/firefox/line_nav_iframes_nested.py
@@ -18,9 +18,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("<Control>Home"))
 sequence.append(utils.AssertPresentationAction(
     "1. Top of file",
-    ["BRAILLE LINE:  '\+1 push button [0-9]+'",
-     "     VISIBLE:  '\+1 push button [0-9]+', cursor=1",
-     "SPEECH OUTPUT: '\+1 push button'",
+    ["BRAILLE LINE:  '\\+1 push button [0-9]+'",
+     "     VISIBLE:  '\\+1 push button [0-9]+', cursor=1",
+     "SPEECH OUTPUT: '\\+1 push button'",
      "SPEECH OUTPUT: '[0-9]+'"]))
 
 sequence.append(utils.StartRecordingAction())
@@ -35,9 +35,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("<Control>Home"))
 sequence.append(utils.AssertPresentationAction(
     "3. Top of file",
-    ["BRAILLE LINE:  '\+1 push button [0-9]+'",
-     "     VISIBLE:  '\+1 push button [0-9]+', cursor=1",
-     "SPEECH OUTPUT: '\+1 push button'",
+    ["BRAILLE LINE:  '\\+1 push button [0-9]+'",
+     "     VISIBLE:  '\\+1 push button [0-9]+', cursor=1",
+     "SPEECH OUTPUT: '\\+1 push button'",
      "SPEECH OUTPUT: '[0-9]+'"]))
 
 sequence.append(utils.StartRecordingAction())
diff --git a/test/keystrokes/firefox/line_nav_wiki_down.py b/test/keystrokes/firefox/line_nav_wiki_down.py
index 170204a..a18ddf6 100644
--- a/test/keystrokes/firefox/line_nav_wiki_down.py
+++ b/test/keystrokes/firefox/line_nav_wiki_down.py
@@ -81,7 +81,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "5. Line Down",
-    ["BRAILLE LINE:  'Home | Download/Installation | Configuration/Use | Accessible Applications | Mailing 
List \('",
+    ["BRAILLE LINE:  'Home | Download/Installation | Configuration/Use | Accessible Applications | Mailing 
List \\('",
      "     VISIBLE:  'Home | Download/Installation | C', cursor=1",
      "SPEECH OUTPUT: 'Home'",
      "SPEECH OUTPUT: 'link.'",
@@ -103,8 +103,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "6. Line Down",
-    ["BRAILLE LINE:  'Archives\) | FAQ | DocIndex'",
-     "     VISIBLE:  'Archives\) | FAQ | DocIndex', cursor=1",
+    ["BRAILLE LINE:  'Archives\\) | FAQ | DocIndex'",
+     "     VISIBLE:  'Archives\\) | FAQ | DocIndex', cursor=1",
      "SPEECH OUTPUT: 'Archives'",
      "SPEECH OUTPUT: 'link.'",
      "SPEECH OUTPUT: ') |'",
@@ -328,12 +328,12 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "30. Line Down",
-    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \(please see our notes on 
how'",
+    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \\(please see our notes on 
how'",
      "     VISIBLE:  'problems in other components, is', cursor=1",
      "SPEECH OUTPUT: 'problems in other components, is maintained in'",
      "SPEECH OUTPUT: 'Bugzilla'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\(please see our'",
+     "SPEECH OUTPUT: '\\(please see our'",
      "SPEECH OUTPUT: 'notes on how'",
      "SPEECH OUTPUT: 'link.'"]))
 
@@ -341,11 +341,11 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "31. Line Down",
-    ["BRAILLE LINE:  'we use Bugzilla\).'",
-     "     VISIBLE:  'we use Bugzilla\).', cursor=1",
+    ["BRAILLE LINE:  'we use Bugzilla\\).'",
+     "     VISIBLE:  'we use Bugzilla\\).', cursor=1",
      "SPEECH OUTPUT: 'we use Bugzilla'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\).'"]))
+     "SPEECH OUTPUT: '\\).'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
@@ -569,21 +569,21 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "55. Line Down",
-    ["BRAILLE LINE:  'using flat review mode to examine a window. Refer to Orca Keyboard Commands \(Laptop'",
+    ["BRAILLE LINE:  'using flat review mode to examine a window. Refer to Orca Keyboard Commands 
\\(Laptop'",
      "     VISIBLE:  'using flat review mode to examin', cursor=1",
      "SPEECH OUTPUT: 'using flat review mode to examine a window. Refer to'",
      "SPEECH OUTPUT: 'Orca Keyboard Commands'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\(Laptop'",
+     "SPEECH OUTPUT: '\\(Laptop'",
      "SPEECH OUTPUT: 'link.'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "56. Line Down",
-    ["BRAILLE LINE:  'Layout\) for more information on Orca-specific keyboard commands. The Orca'",
-     "     VISIBLE:  'Layout\) for more information on ', cursor=1",
-     "SPEECH OUTPUT: 'Layout\)'",
+    ["BRAILLE LINE:  'Layout\\) for more information on Orca-specific keyboard commands. The Orca'",
+     "     VISIBLE:  'Layout\\) for more information on ', cursor=1",
+     "SPEECH OUTPUT: 'Layout\\)'",
      "SPEECH OUTPUT: 'link.'",
      "SPEECH OUTPUT: 'for more information on Orca-specific keyboard commands. The'",
      "SPEECH OUTPUT: 'Orca'",
diff --git a/test/keystrokes/firefox/line_nav_wiki_up.py b/test/keystrokes/firefox/line_nav_wiki_up.py
index 3d14121..24961a6 100644
--- a/test/keystrokes/firefox/line_nav_wiki_up.py
+++ b/test/keystrokes/firefox/line_nav_wiki_up.py
@@ -459,9 +459,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "47. Line Up",
-    ["BRAILLE LINE:  'Layout\) for more information on Orca-specific keyboard commands. The Orca'",
-     "     VISIBLE:  'Layout\) for more information on ', cursor=1",
-     "SPEECH OUTPUT: 'Layout\)'",
+    ["BRAILLE LINE:  'Layout\\) for more information on Orca-specific keyboard commands. The Orca'",
+     "     VISIBLE:  'Layout\\) for more information on ', cursor=1",
+     "SPEECH OUTPUT: 'Layout\\)'",
      "SPEECH OUTPUT: 'link.'",
      "SPEECH OUTPUT: 'for more information on Orca-specific keyboard commands. The'",
      "SPEECH OUTPUT: 'Orca'",
@@ -471,12 +471,12 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "48. Line Up",
-    ["BRAILLE LINE:  'using flat review mode to examine a window. Refer to Orca Keyboard Commands \(Laptop'",
+    ["BRAILLE LINE:  'using flat review mode to examine a window. Refer to Orca Keyboard Commands 
\\(Laptop'",
      "     VISIBLE:  'using flat review mode to examin', cursor=1",
      "SPEECH OUTPUT: 'using flat review mode to examine a window. Refer to'",
      "SPEECH OUTPUT: 'Orca Keyboard Commands'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\(Laptop'",
+     "SPEECH OUTPUT: '\\(Laptop'",
      "SPEECH OUTPUT: 'link.'"]))
 
 sequence.append(utils.StartRecordingAction())
@@ -701,22 +701,22 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "72. Line Up",
-    ["BRAILLE LINE:  'we use Bugzilla\).'",
-     "     VISIBLE:  'we use Bugzilla\).', cursor=1",
+    ["BRAILLE LINE:  'we use Bugzilla\\).'",
+     "     VISIBLE:  'we use Bugzilla\\).', cursor=1",
      "SPEECH OUTPUT: 'we use Bugzilla'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\).'"]))
+     "SPEECH OUTPUT: '\\).'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "73. Line Up",
-    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \(please see our notes on 
how'",
+    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \\(please see our notes on 
how'",
      "     VISIBLE:  'problems in other components, is', cursor=1",
      "SPEECH OUTPUT: 'problems in other components, is maintained in'",
      "SPEECH OUTPUT: 'Bugzilla'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\(please see our'",
+     "SPEECH OUTPUT: '\\(please see our'",
      "SPEECH OUTPUT: 'notes on how'",
      "SPEECH OUTPUT: 'link.'"]))
 
@@ -934,11 +934,11 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "97. Line Up",
-    ["BRAILLE LINE:  'Archives\) | FAQ | DocIndex'",
-     "     VISIBLE:  'Archives\) | FAQ | DocIndex', cursor=1",
+    ["BRAILLE LINE:  'Archives\\) | FAQ | DocIndex'",
+     "     VISIBLE:  'Archives\\) | FAQ | DocIndex', cursor=1",
      "SPEECH OUTPUT: 'Archives'",
      "SPEECH OUTPUT: 'link.'",
-     "SPEECH OUTPUT: '\) |'",
+     "SPEECH OUTPUT: '\\) |'",
      "SPEECH OUTPUT: 'FAQ'",
      "SPEECH OUTPUT: 'link.'",
      "SPEECH OUTPUT: '|'",
@@ -949,7 +949,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Up"))
 sequence.append(utils.AssertPresentationAction(
     "98. Line Up",
-    ["BRAILLE LINE:  'Home | Download/Installation | Configuration/Use | Accessible Applications | Mailing 
List \('",
+    ["BRAILLE LINE:  'Home | Download/Installation | Configuration/Use | Accessible Applications | Mailing 
List \\('",
      "     VISIBLE:  'Home | Download/Installation | C', cursor=1",
      "SPEECH OUTPUT: 'Home'",
      "SPEECH OUTPUT: 'link.'",
diff --git a/test/keystrokes/firefox/say_all_wiki.py b/test/keystrokes/firefox/say_all_wiki.py
index 5dc0d77..92f6a94 100644
--- a/test/keystrokes/firefox/say_all_wiki.py
+++ b/test/keystrokes/firefox/say_all_wiki.py
@@ -112,8 +112,8 @@ sequence.append(utils.AssertPresentationAction(
      "SPEECH OUTPUT: 'About'",
      "SPEECH OUTPUT: 'heading level 1'",
      "SPEECH OUTPUT: 'Orca is a free, open source, flexible, extensible, and powerful assistive technology 
for people with visual impairments.'",
-     "SPEECH OUTPUT: 'Using various combinations of speech synthesis, braille, and magnification, Orca helps 
provide access to applications and toolkits that support the AT-SPI \(e.g.,'",
-     "SPEECH OUTPUT: 'the GNOME desktop\).'",
+     "SPEECH OUTPUT: 'Using various combinations of speech synthesis, braille, and magnification, Orca helps 
provide access to applications and toolkits that support the AT-SPI \\(e.g.,'",
+     "SPEECH OUTPUT: 'the GNOME desktop\\).'",
      "SPEECH OUTPUT: 'The development of Orca has been led by the'",
      "SPEECH OUTPUT: 'Accessibility Program Office of Sun Microsystems, Inc.'",
      "SPEECH OUTPUT: 'link'",
diff --git a/test/keystrokes/firefox/say_all_wiki_no_context.py 
b/test/keystrokes/firefox/say_all_wiki_no_context.py
index 8301a31..b85ff3b 100644
--- a/test/keystrokes/firefox/say_all_wiki_no_context.py
+++ b/test/keystrokes/firefox/say_all_wiki_no_context.py
@@ -108,8 +108,8 @@ sequence.append(utils.AssertPresentationAction(
      "SPEECH OUTPUT: 'About'",
      "SPEECH OUTPUT: 'heading level 1'",
      "SPEECH OUTPUT: 'Orca is a free, open source, flexible, extensible, and powerful assistive technology 
for people with visual impairments.'",
-     "SPEECH OUTPUT: 'Using various combinations of speech synthesis, braille, and magnification, Orca helps 
provide access to applications and toolkits that support the AT-SPI \(e.g.,'",
-     "SPEECH OUTPUT: 'the GNOME desktop\).'",
+     "SPEECH OUTPUT: 'Using various combinations of speech synthesis, braille, and magnification, Orca helps 
provide access to applications and toolkits that support the AT-SPI \\(e.g.,'",
+     "SPEECH OUTPUT: 'the GNOME desktop\\).'",
      "SPEECH OUTPUT: 'The development of Orca has been led by the'",
      "SPEECH OUTPUT: 'Accessibility Program Office of Sun Microsystems, Inc.'",
      "SPEECH OUTPUT: 'link'",
diff --git a/test/keystrokes/firefox/selection_wiki.py b/test/keystrokes/firefox/selection_wiki.py
index 410e191..cde692b 100644
--- a/test/keystrokes/firefox/selection_wiki.py
+++ b/test/keystrokes/firefox/selection_wiki.py
@@ -121,18 +121,18 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("<Shift>Down"))
 sequence.append(utils.AssertPresentationAction(
     "12. Shift Down",
-    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \(please see our notes on 
how'",
+    ["BRAILLE LINE:  'problems in other components, is maintained in Bugzilla \\(please see our notes on 
how'",
      "     VISIBLE:  'r components, is maintained in B', cursor=32",
-     "SPEECH OUTPUT: 'problems in other components, is maintained in Bugzilla  \(please see our'",
+     "SPEECH OUTPUT: 'problems in other components, is maintained in Bugzilla  \\(please see our'",
      "SPEECH OUTPUT: 'selected' voice=system"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("<Shift>Down"))
 sequence.append(utils.AssertPresentationAction(
     "13. Shift Down",
-    ["BRAILLE LINE:  'we use Bugzilla\).'",
-     "     VISIBLE:  'we use Bugzilla\).', cursor=1",
-     "SPEECH OUTPUT: 'notes on how we use Bugzilla \).'",
+    ["BRAILLE LINE:  'we use Bugzilla\\).'",
+     "     VISIBLE:  'we use Bugzilla\\).', cursor=1",
+     "SPEECH OUTPUT: 'notes on how we use Bugzilla \\).'",
      "SPEECH OUTPUT: 'selected' voice=system"]))
 
 sequence.append(utils.StartRecordingAction())
diff --git a/test/keystrokes/firefox/ui_role_accel_label.py b/test/keystrokes/firefox/ui_role_accel_label.py
index f847314..ddcd5b7 100644
--- a/test/keystrokes/firefox/ui_role_accel_label.py
+++ b/test/keystrokes/firefox/ui_role_accel_label.py
@@ -16,7 +16,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "1. Down Arrow in File menu",
-    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Window\(Ctrl\+N\)'",
+    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Window\\(Ctrl\\+N\\)'",
      "     VISIBLE:  'New Window(Ctrl+N)', cursor=1",
      "SPEECH OUTPUT: 'New Window Ctrl+N.'"]))
 
@@ -24,7 +24,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("Down"))
 sequence.append(utils.AssertPresentationAction(
     "2. Down Arrow in File menu",
-    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Private Window\(Shift\+Ctrl\+P\)'",
+    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Private Window\\(Shift\\+Ctrl\\+P\\)'",
      "     VISIBLE:  'New Private Window(Shift+Ctrl+P)', cursor=1",
      "SPEECH OUTPUT: 'New Private Window Shift+Ctrl+P.'"]))
 
@@ -32,7 +32,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_Enter"))
 sequence.append(utils.AssertPresentationAction(
     "3. Basic Where Am I",
-    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Private Window\(Shift\+Ctrl\+P\)'",
+    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Private Window\\(Shift\\+Ctrl\\+P\\)'",
      "     VISIBLE:  'New Private Window(Shift+Ctrl+P)', cursor=1",
      "SPEECH OUTPUT: '(Mozilla Firefox|Nightly) frame'",
      "SPEECH OUTPUT: 'Menu Bar tool bar'",
diff --git a/test/keystrokes/firefox/ui_role_menu_bar.py b/test/keystrokes/firefox/ui_role_menu_bar.py
index ea33a12..c317e5b 100644
--- a/test/keystrokes/firefox/ui_role_menu_bar.py
+++ b/test/keystrokes/firefox/ui_role_menu_bar.py
@@ -16,7 +16,7 @@ sequence.append(utils.AssertPresentationAction(
     "1. Right Arrow on menu bar",
     ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Edit menu'",
      "     VISIBLE:  'Edit menu', cursor=1",
-     "BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar Undo grayed\(Ctrl\+Z\)'",
+     "BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar Undo grayed\\(Ctrl\\+Z\\)'",
      "     VISIBLE:  'Undo grayed(Ctrl+Z)', cursor=1",
      "SPEECH OUTPUT: 'Edit menu.'",
      "SPEECH OUTPUT: 'Undo grayed Ctrl+Z.'"]))
@@ -27,7 +27,7 @@ sequence.append(utils.AssertPresentationAction(
     "2. Left Arrow on menu bar",
     ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar File menu'",
      "     VISIBLE:  'File menu', cursor=1",
-     "BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Tab\(Ctrl\+T\)'",
+     "BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Tab\\(Ctrl\\+T\\)'",
      "     VISIBLE:  'New Tab(Ctrl+T)', cursor=1",
      "SPEECH OUTPUT: 'File menu.'",
      "SPEECH OUTPUT: 'New Tab Ctrl+T.'"]))
@@ -36,7 +36,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_Enter"))
 sequence.append(utils.AssertPresentationAction(
     "3. Basic Where Am I",
-    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Tab\(Ctrl\+T\)'",
+    ["BRAILLE LINE:  'Firefox application (Mozilla Firefox|Nightly) frame Menu Bar tool bar Application menu 
bar New Tab\\(Ctrl\\+T\\)'",
      "     VISIBLE:  'New Tab(Ctrl+T)', cursor=1",
      "SPEECH OUTPUT: '(Mozilla Firefox|Nightly) frame'",
      "SPEECH OUTPUT: 'Menu Bar tool bar'",
diff --git a/test/keystrokes/gnome-clocks/stop_watch_flat_review.py 
b/test/keystrokes/gnome-clocks/stop_watch_flat_review.py
index 51b8cb1..cc9a217 100644
--- a/test/keystrokes/gnome-clocks/stop_watch_flat_review.py
+++ b/test/keystrokes/gnome-clocks/stop_watch_flat_review.py
@@ -40,9 +40,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_7"))
 sequence.append(utils.AssertPresentationAction(
     "4. Review previous line",
-    ["BRAILLE LINE:  '00‎∶04\.[0-9] \$l'",
-     "     VISIBLE:  '00‎∶04\.[0-9] \$l', cursor=1",
-     "SPEECH OUTPUT: '00‎∶04\.[0-9]'"]))
+    ["BRAILLE LINE:  '00‎∶04\\.[0-9] \\$l'",
+     "     VISIBLE:  '00‎∶04\\.[0-9] \\$l', cursor=1",
+     "SPEECH OUTPUT: '00‎∶04\\.[0-9]'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_7"))
@@ -56,9 +56,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_9"))
 sequence.append(utils.AssertPresentationAction(
     "6. Review next line",
-    ["BRAILLE LINE:  '00‎∶0(8|9)\.[0-9] \$l'",
-     "     VISIBLE:  '00‎∶0(8|9)\.[0-9] \$l', cursor=1",
-     "SPEECH OUTPUT: '00‎∶0(8|9)\.[0-9]'"]))
+    ["BRAILLE LINE:  '00‎∶0(8|9)\\.[0-9] \\$l'",
+     "     VISIBLE:  '00‎∶0(8|9)\\.[0-9] \\$l', cursor=1",
+     "SPEECH OUTPUT: '00‎∶0(8|9)\\.[0-9]'"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_Subtract"))
@@ -81,9 +81,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_7"))
 sequence.append(utils.AssertPresentationAction(
     "8. Review previous line",
-    ["BRAILLE LINE:  '00‎∶(13|14)\.[0-9] \$l'",
-     "     VISIBLE:  '00‎∶(13|14)\.[0-9] \$l', cursor=1",
-     "SPEECH OUTPUT: '00‎∶(13|14)\.[0-9]'"]))
+    ["BRAILLE LINE:  '00‎∶(13|14)\\.[0-9] \\$l'",
+     "     VISIBLE:  '00‎∶(13|14)\\.[0-9] \\$l', cursor=1",
+     "SPEECH OUTPUT: '00‎∶(13|14)\\.[0-9]'"]))
 
 sequence.append(PauseAction(3000))
 
@@ -91,9 +91,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_8"))
 sequence.append(utils.AssertPresentationAction(
     "9. Review current line",
-    ["BRAILLE LINE:  '00‎∶(19|20)\.[0-9] \$l'",
-     "     VISIBLE:  '00‎∶(19|20)\.[0-9] \$l', cursor=1",
-     "SPEECH OUTPUT: '00‎∶(19|20)\.[0-9]'"]))
+    ["BRAILLE LINE:  '00‎∶(19|20)\\.[0-9] \\$l'",
+     "     VISIBLE:  '00‎∶(19|20)\\.[0-9] \\$l', cursor=1",
+     "SPEECH OUTPUT: '00‎∶(19|20)\\.[0-9]'"]))
 
 sequence.append(utils.AssertionSummaryAction())
 sequence.start()
diff --git a/test/keystrokes/gnome-clocks/timer_flat_review.py 
b/test/keystrokes/gnome-clocks/timer_flat_review.py
index 3e0f0cc..cd8aec4 100644
--- a/test/keystrokes/gnome-clocks/timer_flat_review.py
+++ b/test/keystrokes/gnome-clocks/timer_flat_review.py
@@ -47,8 +47,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_7"))
 sequence.append(utils.AssertPresentationAction(
     "4. Review previous line",
-    ["BRAILLE LINE:  '00 ∶ 04 ∶ 5[0-9] \$l'",
-     "     VISIBLE:  '00 ∶ 04 ∶ 5[0-9] \$l', cursor=1",
+    ["BRAILLE LINE:  '00 ∶ 04 ∶ 5[0-9] \\$l'",
+     "     VISIBLE:  '00 ∶ 04 ∶ 5[0-9] \\$l', cursor=1",
      "SPEECH OUTPUT: '00 ∶ 04 ∶ 5[0-9]'"]))
 
 sequence.append(utils.StartRecordingAction())
@@ -65,8 +65,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_9"))
 sequence.append(utils.AssertPresentationAction(
     "6. Review next line",
-    ["BRAILLE LINE:  '00 ∶ 04 ∶ 4[0-9] \$l'",
-     "     VISIBLE:  '00 ∶ 04 ∶ 4[0-9] \$l', cursor=1",
+    ["BRAILLE LINE:  '00 ∶ 04 ∶ 4[0-9] \\$l'",
+     "     VISIBLE:  '00 ∶ 04 ∶ 4[0-9] \\$l', cursor=1",
      "SPEECH OUTPUT: '00 ∶ 04 ∶ 4[0-9]'"]))
 
 sequence.append(PauseAction(5000))
@@ -75,8 +75,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_8"))
 sequence.append(utils.AssertPresentationAction(
     "7. Review current line",
-    ["BRAILLE LINE:  '00 ∶ 04 ∶ 3[0-9] \$l'",
-     "     VISIBLE:  '00 ∶ 04 ∶ 3[0-9] \$l', cursor=1",
+    ["BRAILLE LINE:  '00 ∶ 04 ∶ 3[0-9] \\$l'",
+     "     VISIBLE:  '00 ∶ 04 ∶ 3[0-9] \\$l', cursor=1",
      "SPEECH OUTPUT: '00 ∶ 04 ∶ 3[0-9]'"]))
 
 sequence.append(PauseAction(5000))
@@ -85,8 +85,8 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_8"))
 sequence.append(utils.AssertPresentationAction(
     "8. Review current line",
-    ["BRAILLE LINE:  '00 ∶ 04 ∶ 2[0-9] \$l'",
-     "     VISIBLE:  '00 ∶ 04 ∶ 2[0-9] \$l', cursor=1",
+    ["BRAILLE LINE:  '00 ∶ 04 ∶ 2[0-9] \\$l'",
+     "     VISIBLE:  '00 ∶ 04 ∶ 2[0-9] \\$l', cursor=1",
      "SPEECH OUTPUT: '00 ∶ 04 ∶ 2[0-9]'"]))
 
 sequence.append(utils.AssertionSummaryAction())
diff --git a/test/keystrokes/gnome-terminal/nano.py b/test/keystrokes/gnome-terminal/nano.py
index b9ed794..fd1d5c5 100644
--- a/test/keystrokes/gnome-terminal/nano.py
+++ b/test/keystrokes/gnome-terminal/nano.py
@@ -15,7 +15,7 @@ sequence.append(utils.AssertPresentationAction(
     "1. Launch Nano",
     ["BRAILLE LINE:  ''",
      "     VISIBLE:  '', cursor=1",
-     "SPEECH OUTPUT: '  nano [\d\.]+\s+New Buffer\s*",
+     "SPEECH OUTPUT: '  nano [\\d\\.]+\\s+New Buffer\\s*",
      "",
      "'"]))
 
diff --git a/test/keystrokes/gnome-terminal/nano_flat_review.py 
b/test/keystrokes/gnome-terminal/nano_flat_review.py
index 1ab56d6..c86393a 100644
--- a/test/keystrokes/gnome-terminal/nano_flat_review.py
+++ b/test/keystrokes/gnome-terminal/nano_flat_review.py
@@ -131,9 +131,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("KP_9"))
 sequence.append(utils.AssertPresentationAction(
     "12. Review next line",
-    ["BRAILLE LINE:  '^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line $l'",
-     "     VISIBLE:  '^X Exit      ^R Read File ^\ Rep', cursor=1",
-     "SPEECH OUTPUT: '^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line",
+    ["BRAILLE LINE:  '^X Exit      ^R Read File ^\\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line $l'",
+     "     VISIBLE:  '^X Exit      ^R Read File ^\\ Rep', cursor=1",
+     "SPEECH OUTPUT: '^X Exit      ^R Read File ^\\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line",
      "'"]))
 
 sequence.append(utils.AssertionSummaryAction())
diff --git a/test/keystrokes/gnome-terminal/vim-append.py b/test/keystrokes/gnome-terminal/vim-append.py
index 26475ce..75e0039 100644
--- a/test/keystrokes/gnome-terminal/vim-append.py
+++ b/test/keystrokes/gnome-terminal/vim-append.py
@@ -14,7 +14,7 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("a"))
 sequence.append(utils.AssertPresentationAction(
     "1. A to append text",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame '",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame '",
      "     VISIBLE:  '', cursor=1",
      "SPEECH OUTPUT: '-- INSERT --                                                  0,1  '"]))
 
@@ -22,34 +22,34 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(TypeAction("Hi Hi"))
 sequence.append(utils.AssertPresentationAction(
     "2. Type 'Hi Hi'",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame H'",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame H'",
      "     VISIBLE:  'H', cursor=2",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame H'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame H'",
      "     VISIBLE:  'H', cursor=2",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi'",
      "     VISIBLE:  'Hi', cursor=3",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi'",
      "     VISIBLE:  'Hi', cursor=3",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi'",
      "     VISIBLE:  'Hi', cursor=3",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi H'",
      "     VISIBLE:  'Hi H', cursor=5",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi H'",
      "     VISIBLE:  'Hi H', cursor=5",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
      "     VISIBLE:  'Hi Hi', cursor=6",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
      "     VISIBLE:  'Hi Hi', cursor=6"]))
 
 sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("BackSpace"))
 sequence.append(utils.AssertPresentationAction(
     "3. BackSpace",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi H'",
      "     VISIBLE:  'Hi H', cursor=5",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi H'",
      "     VISIBLE:  'Hi H', cursor=5",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi H'",
      "     VISIBLE:  'Hi H', cursor=5",
      "SPEECH OUTPUT: 'i'"]))
 
@@ -57,11 +57,11 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("BackSpace"))
 sequence.append(utils.AssertPresentationAction(
     "4. BackSpace",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=4",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=4",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=4",
      "SPEECH OUTPUT: 'H'"]))
 
@@ -69,11 +69,11 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(KeyComboAction("BackSpace"))
 sequence.append(utils.AssertPresentationAction(
     "5. BackSpace",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=3",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=3",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi '",
      "     VISIBLE:  'Hi ', cursor=3",
      "SPEECH OUTPUT: '4'"]))
 
@@ -81,9 +81,9 @@ sequence.append(utils.StartRecordingAction())
 sequence.append(TypeAction("!"))
 sequence.append(utils.AssertPresentationAction(
     "6. Type '!'",
-    ["BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi!'",
+    ["BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi!'",
      "     VISIBLE:  'Hi!', cursor=4",
-     "BRAILLE LINE:  'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi!'",
+     "BRAILLE LINE:  'gnome-terminal-server application \\w+@\\w+:/tmp/gnome-terminal-wd frame Hi!'",
      "     VISIBLE:  'Hi!', cursor=4"]))
 
 sequence.append(utils.StartRecordingAction())



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