[squeak-dev] The Trunk: CollectionsTests-mt.363.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 2 13:53:51 UTC 2021


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

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

Name: CollectionsTests-mt.363
Author: mt
Time: 2 December 2021, 2:53:50.194715 pm
UUID: 2e5af8dd-1822-9c41-8cab-2ad1e733146c
Ancestors: CollectionsTests-ul.362

Complements Collections-mt.965

=============== Diff against CollectionsTests-ul.362 ===============

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="12">Hello, World!!</font>'.
+ 		'Hello, World!!' asText
+ 			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="12"><font color="#FFFF00">Hello, World!!</font></font>'.
+ 		'Hello, World!!' asText
+ 			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