[squeak-dev] The Trunk: MultilingualTests-mt.39.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Feb 5 14:56:24 UTC 2022


Marcel Taeumel uploaded a new version of MultilingualTests to project The Trunk:
http://source.squeak.org/trunk/MultilingualTests-mt.39.mcz

==================== Summary ====================

Name: MultilingualTests-mt.39
Author: mt
Time: 5 February 2022, 3:56:23.133491 pm
UUID: 72f6feb9-996f-2f47-84cb-1ff9eb9193a1
Ancestors: MultilingualTests-mt.38

Fixes that other paragraph test. Complements MultilingualTests-mt.38.

=============== Diff against MultilingualTests-mt.38 ===============

Item was changed:
  ----- Method: FontTest>>testParagraph (in category 'tests') -----
  testParagraph
  	"self debug: #testParagraph"
  	| text p style height width |
  	text := 'test' asText.
  	p := NewParagraph new.
  	style := TextStyle default.
  	p
  		compose: text
  		style: style
  		from: 1
+ 		in: (0 @ 0 corner: 1000000 @ 1000000).
- 		in: (0 @ 0 corner: 100 @ 100).
  	"See CompositionScanner>>setActualFont: &  
  	CompositionScanner>>composeFrom:inRectangle:firstLine:leftSide:rightSide:"
  	height := style defaultFont height + style leading.
  	width := (text
  				inject: 0
  				into: [:tally :next | tally
  						+ (style defaultFont widthOf: next)]) + p caretWidth. "because it is added by the paragraph formatting"
  	p adjustRightX.
  	self assert: p extent = (width @ height)!



More information about the Squeak-dev mailing list