[squeak-dev] The Trunk: CollectionsTests-ct.368.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 10 19:03:54 UTC 2022


Christoph Thiede uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ct.368.mcz

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

Name: CollectionsTests-ct.368
Author: ct
Time: 10 January 2022, 8:03:34.822597 pm
UUID: a071bc20-7ee8-c64b-a012-4d0b77d7317d
Ancestors: CollectionsTests-ct.367

Fixes failing collection tests.

CharacterTest >> #test{Print,Store}String:
	Character cr's constant name has changed to #return. See Collections-mt.945.

HtmlReadWriterTest >> #test03FontTag:
	Accula font is only available in sizes 10.5 and 21. Choose the first one.

=============== Diff against CollectionsTests-ct.367 ===============

Item was changed:
  ----- Method: CharacterTest>>testPrintString (in category 'tests - printing') -----
  testPrintString
  	self assert: $a printString = '$a'.
  	self assert: $5 printString = '$5'.
  	self assert: $@ printString = '$@'.
  
+ 	self assert: Character return printString = 'Character return'.
- 	self assert: Character cr printString = 'Character cr'.
  	self assert: Character lf printString = 'Character lf'.
  	self assert: Character space printString = 'Character space'.
  
  	self assert: Character null printString = 'Character null'.
  	self assert: (Character value: 17) printString = 'Character value: 17'.!

Item was changed:
  ----- Method: CharacterTest>>testStoreString (in category 'tests - printing') -----
  testStoreString
  	self assert: $a storeString = '$a'.
  	self assert: $5 storeString = '$5'.
  	self assert: $@ storeString = '$@'.
  
+ 	self assert: Character return storeString = 'Character return'.
- 	self assert: Character cr storeString = 'Character cr'.
  	self assert: Character lf storeString = 'Character lf'.
  	self assert: Character space storeString = 'Character space'.
  
  	self assert: Character null storeString = 'Character null'.
  	self assert: (Character value: 17) storeString = '(Character value: 17)'.!

Item was changed:
  ----- Method: HtmlReadWriterTest>>test03FontTag (in category 'tests') -----
  test03FontTag
  
  	{
  		'<font color="#FFFF00">Hello, World!!</font>'.
  		'Hello, World!!' asText
  			addAttribute: (TextColor color: Color yellow).
  			
+ 		'<font face="Accula" size="10.5">Hello, World!!</font>'.
- 		'<font face="Accula" size="12">Hello, World!!</font>'.
  		'Hello, World!!' asText
+ 			addAttribute: (TextFontReference toFont: (StrikeFont familyName: 'Accula' pointSize: 10.5)).
- 			addAttribute: (TextFontReference toFont: (StrikeFont familyName: 'Accula' pointSize: 12)).
  
  		"Note that we cannot directly use both face/size and color in the same font tag because of how #openHtmlOn: works in fonts. Works in general, but just not in this test setup."
+ 		'<font face="Accula" size="10.5"><font color="#FFFF00">Hello, World!!</font></font>'.
- 		'<font face="Accula" size="12"><font color="#FFFF00">Hello, World!!</font></font>'.
  		'Hello, World!!' asText
+ 			addAttribute: (TextFontReference toFont: (StrikeFont familyName: 'Accula' pointSize: 10.5));
- 			addAttribute: (TextFontReference toFont: (StrikeFont familyName: 'Accula' pointSize: 12));
  			addAttribute: (TextColor color: Color yellow).
  		
  	} pairsDo: [:expectedHtml :expectedText |
  		
  		self convertHtml: expectedHtml.
  		self assert: expectedText string equals: text string.
  		self assert: expectedText runs equals: text runs.
  		
  		self convertText: expectedText.
  		self assert: expectedHtml equals: html].!



More information about the Squeak-dev mailing list