Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.881.mcz
==================== Summary ====================
Name: Tools-mt.881
Author: mt
Time: 3 September 2019, 10:31:26.605063 am
UUID: fcc8128d-6944-ff49-83b6-9ccd090e9e0f
Ancestors: Tools-mt.880
Our lists render only the first character's emphasis for the entire string. Fix that for class-tree formatting.
=============== Diff against Tools-mt.880 ===============
Item was changed:
----- Method: Browser>>flattenHierarchyTree:on:indent:by:format: (in category 'class list') -----
flattenHierarchyTree: classHierarchy on: col indent: indent by: indentChars format: formatBlock
"Recursively add to col the names in classHierarchy indenting to show the hierarchical relationship. Use indentChars to do the indenting: spaces, tabs, etc."
| plusIndent |
plusIndent := indentChars.
classHierarchy do: [:assoc |
| class childs label |
class := assoc key.
label := formatBlock value: class.
label isText
+ ifTrue: [col add: (Text string: indent attributes: (label attributesAt: 1)), label]
- ifTrue: [col add: indent asText, label]
ifFalse: [col add: indent, label].
childs := assoc value.
self
flattenHierarchyTree: childs
on: col
indent: indent , plusIndent
by: indentChars
format: formatBlock].
^ col!
Marcel Taeumel uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-mt.72.mcz
==================== Summary ====================
Name: SUnitGUI-mt.72
Author: mt
Time: 3 September 2019, 9:04:53.468063 am
UUID: 7a1aee8a-d3d3-b749-b2b9-647310559a1a
Ancestors: SUnitGUI-mt.71
Fixes the class hierarchy in the test runner. Adds number of tests to the class labels.
Needs Tools-mt.880. We might want to find a better place for tree-to-list flattening. Yet, this is not a new dependency from SUnitGUI to the tools package.
=============== Diff against SUnitGUI-mt.71 ===============
Item was changed:
----- Method: TestRunner>>classList (in category 'accessing-classes') -----
classList
+
+ | helper |
- | offset |
classes isEmpty ifTrue: [ ^ classes ].
+
+ helper := Browser new.
+ ^ helper
+ flattenHierarchyTree: (helper createHierarchyTreeOf: classes)
+ on: OrderedCollection new
+ indent: ''
+ by: ' '
+ format: [:class | class isAbstract
+ ifTrue: [class name asText addAttribute: TextEmphasis italic; yourself]
+ ifFalse: ['{1} ({2})' format: {class name. class allTestSelectors size}]]!
- offset := classes first allSuperclasses size.
- ^ classes collect: [ :each | | ident |
- ident := String
- new: 2 * (0 max: each allSuperclasses size - offset)
- withAll: $ .
- each isAbstract
- ifFalse: [ ident , each name ]
- ifTrue: [
- ident asText , each name asText
- addAttribute: TextEmphasis italic;
- yourself ] ].!
Marcel Taeumel uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-mt.880.mcz
==================== Summary ====================
Name: Tools-mt.880
Author: mt
Time: 3 September 2019, 9:03:13.138063 am
UUID: 334585e8-af9b-db41-b6bf-b8ac4d0a7128
Ancestors: Tools-mt.879
Adds very simple support for formatting the class hierachy labels in the code browser.
=============== Diff against Tools-mt.879 ===============
Item was changed:
----- Method: Browser>>flattenHierarchyTree:on:indent:by: (in category 'class list') -----
flattenHierarchyTree: classHierarchy on: col indent: indent by: indentChars
+ ^ self
+ flattenHierarchyTree: classHierarchy
+ on: col
+ indent: indent
+ by: ' '
+ format: [:class | class name]!
- "Recursively add to col the names in classHierarchy indenting to show the hierarchical relationship. Use indentChars to do the indenting: spaces, tabs, etc."
- | plusIndent |
- plusIndent := indentChars.
- classHierarchy do: [:assoc |
- | class childs |
- class := assoc key.
- col add: indent , class name.
- childs := assoc value.
- self
- flattenHierarchyTree: childs
- on: col
- indent: indent , plusIndent
- by: indentChars].
- ^ col!
Item was added:
+ ----- Method: Browser>>flattenHierarchyTree:on:indent:by:format: (in category 'class list') -----
+ flattenHierarchyTree: classHierarchy on: col indent: indent by: indentChars format: formatBlock
+ "Recursively add to col the names in classHierarchy indenting to show the hierarchical relationship. Use indentChars to do the indenting: spaces, tabs, etc."
+ | plusIndent |
+ plusIndent := indentChars.
+ classHierarchy do: [:assoc |
+ | class childs label |
+ class := assoc key.
+ label := formatBlock value: class.
+ label isText
+ ifTrue: [col add: indent asText, label]
+ ifFalse: [col add: indent, label].
+ childs := assoc value.
+ self
+ flattenHierarchyTree: childs
+ on: col
+ indent: indent , plusIndent
+ by: indentChars
+ format: formatBlock].
+ ^ col!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1513.mcz
==================== Summary ====================
Name: Morphic-mt.1513
Author: mt
Time: 2 September 2019, 7:45:12.260683 pm
UUID: 61cca4ac-ac7c-3847-87f2-ae615fd1183d
Ancestors: Morphic-mt.1512
Fixes a regression with non-clipping window titles.
Also see TextMorph >> #minWidth. Not sure whether StringMorphs should "shrink wrap" horizontally if they are #rigid. Since they do not wrap vertically, it makes sense.
=============== Diff against Morphic-mt.1512 ===============
Item was changed:
----- Method: StringMorph>>minWidth (in category 'layout') -----
minWidth
"Layout specific."
+ ^ self hResizing = #spaceFill
+ ifTrue: [0] ifFalse: [super minWidth max: (self fontToUse widthOfString: self contents)]!
- ^ super minWidth max: (self fontToUse widthOfString: self contents)!
Marcel Taeumel uploaded a new version of TraitsTests to project The Trunk:
http://source.squeak.org/trunk/TraitsTests-mt.22.mcz
==================== Summary ====================
Name: TraitsTests-mt.22
Author: mt
Time: 2 September 2019, 6:30:30.686683 pm
UUID: 2fdfe490-2fb1-5c48-a171-9a3ef751aa72
Ancestors: TraitsTests-mt.21
Removes a hard-coded value to let the test pass again.
=============== Diff against TraitsTests-mt.21 ===============
Item was changed:
----- Method: TraitTest>>testPrinting (in category 'testing') -----
testPrinting
self assertPrints: self t6 definition
like: 'Trait named: #T6
uses: T1 + (T2 @ {#m22Alias->#m22})
+ category: ''', self categoryName, ''''!
- category: ''TraitsTests-Kernel'''!
Marcel Taeumel uploaded a new version of TraitsTests to project The Trunk:
http://source.squeak.org/trunk/TraitsTests-mt.21.mcz
==================== Summary ====================
Name: TraitsTests-mt.21
Author: mt
Time: 2 September 2019, 6:16:52.04089 pm
UUID: 4cf604e6-f6b1-bd4a-a2a7-8cdb84295f3b
Ancestors: TraitsTests-mt.20
Uses category name from resources object. Fixes a protocol. Comments a test that gave me the hint for that fix in SUnit-mt.116.
=============== Diff against TraitsTests-mt.20 ===============
Item was changed:
----- Method: TraitMethodDescriptionTest>>testArgumentNames (in category 'running') -----
testArgumentNames
+ "T5 combines both T1 and T2. For conflicting messages, T5 cannot know the correct argument names and thus falls back to a generic form 'arg1', 'arg2', etc."
+
self t1 compile: 'zork1: myArgument zork2: mySecondArgument ^true'.
self t2 compile: 'zork1: myArgument zork2: somethingElse ^false'.
+
self assert: ((self t5 sourceCodeAt: #zork1:zork2:) asString
beginsWith: 'zork1: arg1 zork2: arg2').
+
self t1 compile: 'zork1: myArgument zork2: mySecondArgument ^true'.
self t2 compile: 'zork1: somethingElse zork2: myArgument ^false'.
+
self assert: ((self t5 sourceCodeAt: #zork1:zork2:) asString
beginsWith: 'zork1: arg1 zork2: arg2')!
Item was changed:
----- Method: TraitsTestCase>>categoryName (in category 'running') -----
categoryName
+
+ ^ TraitsResource current categoryName!
- ^self class category!
Item was changed:
+ ----- Method: TraitsTestCase>>setUp (in category 'running') -----
- ----- Method: TraitsTestCase>>setUp (in category 'accessing') -----
setUp
super setUp.
self timeout: 90. "pre: This is necessary to account for the TraitsResrouce setup"
!