Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-FailingTest Milestone-1.4

New issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

TestNewParagraphFix.testCharacterBlockAfterReplacingAll


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo

Comment #1 on issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

broken because of the systematic use of MultiCompositionScanner.
Previously, simple CompositionScanner was used in case of simple string.

The difference reside in #crossedX. See below the breakAtSpace using in  
MultiCompositionScanner.
It is set to false by the #setFont invocation. By setting it to true, the  
tests are green again but I don't know if it is correct at all to set it to  
true here.

crossedX
        pendingKernX := 0.
        (breakAtSpace) ifTrue: [
                spaceCount >= 1 ifTrue:


crossedX
        pendingKernX := 0.
        spaceCount >= 1 ifTrue:
                ["The common case. First back off to the space at which we wrap."
                line stop: spaceIndex.





The other solution is to come back to an alternative: use simple  
CompositionScanner if the text is made of simple characters.
In
Paragraph>>recomposeFrom: start to: stop delta: delta

...
        text string isOctetString ifTrue: [
                ^ self composeLinesFrom: (lines at: startLine) first to: stop delta: delta
                        into: newLines priorLines: lines
                        atY: (lines at: startLine) top.
        ].
        self multiComposeLinesFrom: (lines at: startLine) first to: stop delta:  
delta
                into: newLines priorLines: lines
                atY: (lines at: startLine) top.



btw: there are a lot of code duplications between XXXX and MultiXXXX  
classes.




_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo
Updates:
        Status: FixProposed

Comment #2 on issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

I would say we for now do the second solution and than clean it up later  
with Issue 4290


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo

Comment #3 on issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

in inbox
SLICE-Issue-4828-Failing-tests-testCharacterBlockAfterReplacingAll


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo
Updates:
        Status: FixToInclude

Comment #4 on issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4828 in pharo: Failing tests: #testCharacterBlockAfterReplacingAll

pharo
Updates:
        Status: Integrated

Comment #5 on issue 4828 by [hidden email]: Failing tests:  
#testCharacterBlockAfterReplacingAll
http://code.google.com/p/pharo/issues/detail?id=4828

in 14157


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker