After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523453 - oowriter/bug_435201.py regression tests #1 through #5 produce the wrong results.
oowriter/bug_435201.py regression tests #1 through #5 produce the wrong results.
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 2.24.0
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks: 523438
 
 
Reported: 2008-03-19 21:21 UTC by Rich Burridge
Modified: 2008-04-04 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Revision #1. (9.54 KB, patch)
2008-03-25 16:41 UTC, Rich Burridge
committed Details | Review

Description Rich Burridge 2008-03-19 21:21:28 UTC
Test 1 of 5 FAILED: /home/richb/gnome/orca/trunk/test/keystrokes/oowriter/bug_435201.py:Type Control-down to move to the next paragraph [1]
EXPECTED:
     "BUG: speaks the paragraph three times",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=2",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",
ACTUAL:
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=2",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",


Test 2 of 5 FAILED: /home/richb/gnome/orca/trunk/test/keystrokes/oowriter/bug_435201.py:Type Control-down to move to the next paragraph [2]
EXPECTED:
     "BUG: speaks the paragraph two times",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=2",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",
     "SPEECH OUTPUT: 'blank'",
ACTUAL:
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=2",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '",
     "SPEECH OUTPUT: 'blank'",


Test 3 of 5 FAILED: /home/richb/gnome/orca/trunk/test/keystrokes/oowriter/bug_435201.py:Type Control-down to move to the next paragraph [3]
EXPECTED:
     "BUG: speaks the paragraph two times",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'blank'",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
ACTUAL:
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'blank'",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",


Test 4 of 5 FAILED: /home/richb/gnome/orca/trunk/test/keystrokes/oowriter/bug_435201.py:Type Control-down to move to the next paragraph [4]
EXPECTED:
     "BUG: speaks the paragraph two times",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=2",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'blank'",
ACTUAL:
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=2",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject  $l'",
     "     VISIBLE:  'Now old lady, you have one last ', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'Now old lady, you have one last chance. Confess the heinous sin of heresy, reject '",
     "SPEECH OUTPUT: 'blank'",


Test 5 of 5 FAILED: /home/richb/gnome/orca/trunk/test/keystrokes/oowriter/bug_435201.py:Type Control-down to move to the next paragraph [5]
EXPECTED:
     "BUG: speaks the paragraph two times",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "BRAILLE LINE:  'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application spanish - OpenOffice.org Writer Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "SPEECH OUTPUT: 'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR!'",
     "SPEECH OUTPUT: 'blank'",
     "SPEECH OUTPUT: 'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR!'",
ACTUAL:
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "BRAILLE LINE:  'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  ' $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'soffice Application Frame spanish - OpenOffice.org Writer RootPane ScrollPane Document view Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR! $l'",
     "     VISIBLE:  'Hm! She is made of harder stuff!', cursor=1",
     "SPEECH OUTPUT: 'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR!'",
     "SPEECH OUTPUT: 'blank'",
     "SPEECH OUTPUT: 'Hm! She is made of harder stuff! Cardinal Fang! Fetch the COMFY CHAIR!'",
Comment 1 Rich Burridge 2008-03-25 16:41:25 UTC
Created attachment 108000 [details] [review]
Revision #1.

There are two problems here:

1/ The braille context is incorrect because there is now an additional
   "Frame".

The attached patch fixes this problem. The patch is not committed yet.

2/ Each paragraph in the document is being spoken 2 or 3 times (should
   just be spoken once). 

Note that this is just something that is noticeable when we run synchronously.
If we run asynchronous then each one interrupts the previous one and just
the last utterance is heard.

Here's an example. For the first Control-Down, we get multiple 
"object:text-caret-moved" events, some of which cause a paragraph 
to be spoken:

--

OBJECT EVENT: object:text-caret-moved                  detail=(1,0)
    app.name='soffice' name='None' role='paragraph' state='editable enabled focusable focused multi line multiselectable showing visible' relations='flows to'
...
sayLine: line=<NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and >, len=83, start=0,
caret=1, speakBlankLines=True
SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '

--

OBJECT EVENT: object:text-caret-moved                  detail=(0,0)
    app.name='soffice' name='None' role='paragraph' state='editable enabled focusable focused multi line multiselectable showing visible' relations='flows to'
...
sayLine: line=<NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and >, len=83, start=0,
caret=0, speakBlankLines=True
SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and '

--

OBJECT EVENT: object:text-caret-moved                  detail=(-1,0)
    app.name='soffice' name='None' role='paragraph' state='editable enabled focusable focused multi line multiselectable showing visible' relations='flows to'
...
sayLine: line=<>, len=0, start=-1219041762,
caret=-1, speakBlankLines=True
sayLine: character=<>, start=-1246219256, end=-1255312077

--

OBJECT EVENT: object:text-caret-moved                  detail=(0,0)
    app.name='soffice' name='None' role='paragraph' state='editable enabled focusable focused multi line multiselectable showing visible' relations='flows from flows to'
...
sayLine: line=<NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse >, len=78, start=0,
caret=0, speakBlankLines=True
SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse '

I'm not sure what the best way to fix this is. :-(

Is it something we should just add a "KNOWN ISSUE" to in the 
regression test?
Comment 2 Rich Burridge 2008-03-26 17:40:30 UTC
Sorry, forgot to bring this one up in the Orca team meeting yesterday.

Will, see previous comment. Is it something we should just add a 
"KNOWN ISSUE" to in the regression test?
Comment 3 Willie Walker 2008-03-26 18:20:24 UTC
(In reply to comment #2)
> Sorry, forgot to bring this one up in the Orca team meeting yesterday.
> 
> Will, see previous comment. Is it something we should just add a 
> "KNOWN ISSUE" to in the regression test?

This is probably fine, and I think it may even be OK to not flag it as a KNOWN ISSUE.
Comment 4 Rich Burridge 2008-03-26 19:53:14 UTC
> This is probably fine, and I think it may even be OK to not flag it 
> as a KNOWN ISSUE.

Okay. Patch committed to SVN trunk. Moving to '[pending]'. Thanks.
Comment 5 Mike Pedersen 2008-04-04 18:06:20 UTC
This seems reasonable as a known issue. 
Comment 6 Rich Burridge 2008-04-04 18:36:36 UTC
Thanks Mike. Closing as FIXED.