Pharo 1.1 failing tests testNewLineStartsIndentedWhenWrapped

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

Pharo 1.1 failing tests testNewLineStartsIndentedWhenWrapped

Nicolas Cellier
If paragraph composition width is reduced by 24 instead of 20, the
test works (taken from trunk)

testNewLineStartsIndentedWhenWrapped
        "Checks whether the beginning of a new line starts at the indented position"
        | cb |
        para compositionRectangle: (0@0 extent: para width - 24@100);
updateCompositionHeight.
        para clippingRectangle: (0@0 extent: 200@200).
        cb := para characterBlockForIndex: 8.
        self assert: cb top > 0.
        self assert: cb left = 24

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

Re: Pharo 1.1 failing tests testNewLineStartsIndentedWhenWrapped

Stéphane Ducasse
thanks Kanban master!

Stef



> If paragraph composition width is reduced by 24 instead of 20, the
> test works (taken from trunk)
>
> testNewLineStartsIndentedWhenWrapped
> "Checks whether the beginning of a new line starts at the indented position"
> | cb |
> para compositionRectangle: (0@0 extent: para width - 24@100);
> updateCompositionHeight.
> para clippingRectangle: (0@0 extent: 200@200).
> cb := para characterBlockForIndex: 8.
> self assert: cb top > 0.
> self assert: cb left = 24
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


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