GNOME Bugzilla – Bug 519545
gtk-demo/role_label.py regression test #2 produces the wrong results.
Last modified: 2008-03-05 19:40:12 UTC
This is on latest Ubuntu Hardy: EXPECTED: "BUG? - text is selected but not presented as such in speech or braille", "BRAILLE LINE: 'gtk-demo Application Information Alert This message box has been popped up the following", "number of times: Label'", " VISIBLE: 'This message box has been popped', cursor=1", "SPEECH OUTPUT: 'This message box has been popped up the following", "number of times:'", "SPEECH OUTPUT: 'label'", ACTUAL: "BRAILLE LINE: 'gtk-demo Application Information Alert This message box has been popped up the following $l'", " VISIBLE: 'This message box has been popped', cursor=1", "SPEECH OUTPUT: 'This message box has been popped up the following", "number of times:'", "SPEECH OUTPUT: 'label'", [FAILURE WAS EXPECTED - LOOK FOR BUG? IN EXPECTED RESULTS] We need to investigate why the selected text is not presented as such in speech or braille.
*** Bug 519546 has been marked as a duplicate of this bug. ***
*** Bug 519549 has been marked as a duplicate of this bug. ***
*** Bug 519550 has been marked as a duplicate of this bug. ***
Created attachment 106634 [details] [review] Revision #1 Patch hopefully fixing the problems in regression tests 2, 3, 6 and 7. Note that for a ROLE_LABEL we were using the _speakGenericObject() method which doesn't test for selected text. I've created a new _speakLabel() for ROLE_LABEL's now. I've also created a new _getSpeechForAllTextSelection() method as we are now using similar code for spin button and label text selection, and adjust their _speak...() methods to call this. For the role_label.py regression tests, just test #5 is still failing (to be investigated). For the role_spin)button.py, regression tests, test #2 remains fixed.
This works for me (both functionally and the regression test - sans test#5).
Thanks Joanie. Patch committed to SVN trunk. Closing as FIXED.