orca r3702 - in trunk: . src/orca test/keystrokes/gtk-demo



Author: richb
Date: Fri Mar  7 22:10:43 2008
New Revision: 3702
URL: http://svn.gnome.org/viewvc/orca?rev=3702&view=rev

Log:
        * src/orca/default.py:
          test/keystrokes/gtk-demo/role_spin_button.py:
          Fix for bug #519559 - gtk-demo/role_spin_button.py regression 
          test #4 produces the wrong results.


Modified:
   trunk/ChangeLog
   trunk/src/orca/default.py
   trunk/test/keystrokes/gtk-demo/role_spin_button.py

Modified: trunk/src/orca/default.py
==============================================================================
--- trunk/src/orca/default.py	(original)
+++ trunk/src/orca/default.py	Fri Mar  7 22:10:43 2008
@@ -3340,7 +3340,13 @@
         # If this is a spin button, then speak the text and return.
         #
         if event.source.getRole() == pyatspi.ROLE_SPIN_BUTTON:
-            speech.speak(text)
+            # We are using getTextLineAtCaret here instead of the "text"
+            # variable, because of a problem with selected text in spin 
+            # buttons. See bug #520395 for more details.
+            #
+            [spinValue, caretOffset, startOffset] = \
+                self.getTextLineAtCaret(event.source)
+            speech.speak(spinValue)
             return
 
         # If the last input event was a keyboard event, check to see if

Modified: trunk/test/keystrokes/gtk-demo/role_spin_button.py
==============================================================================
--- trunk/test/keystrokes/gtk-demo/role_spin_button.py	(original)
+++ trunk/test/keystrokes/gtk-demo/role_spin_button.py	Fri Mar  7 22:10:43 2008
@@ -106,7 +106,7 @@
 sequence.append(PauseAction(1000))
 sequence.append(utils.AssertPresentationAction(
     "Hue spin button decrement value",
-    ["BUG? - Value should be 239",
+    ["KNOWN ISSUE - Value should be 239",
      "BRAILLE LINE:  'gtk-demo Application Changing color ColorChooser ColorChooser Hue: 240 $l'",
      "     VISIBLE:  'Hue: 240 $l', cursor=9",
      "BRAILLE LINE:  'gtk-demo Application Changing color ColorChooser ColorChooser Hue: 240 $l'",



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