[squeak-dev] The Trunk: SUnitGUI-eem.82.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 3 05:39:01 UTC 2020


Eliot Miranda uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-eem.82.mcz

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

Name: SUnitGUI-eem.82
Author: eem
Time: 2 December 2020, 9:39:00.195693 pm
UUID: 9864b164-83b4-4e18-ad3d-fdd041f13f9c
Ancestors: SUnitGUI-ct.81

Allow the TestRunner's categories to be sorted, even if this doesn't persist past running the selected test(s).  But for finding a category it can be more convenient than filtering.

=============== Diff against SUnitGUI-ct.81 ===============

Item was changed:
  ----- Method: TestRunner>>categoryMenu: (in category 'accessing-categories') -----
  categoryMenu: aMenu
  	^ aMenu
  		title: 'Categories';
  		add: 'Select all' action: #selectAllCategories;
  		add: 'Select inversion' action: #selectInverseCategories;
  		add: 'Select none' action: #selectNoCategories;
  		addLine;
  		add: 'Filter...' action: #filterCategories;
  		addLine;
  		add: 'Refresh' action: #updateCategories;
+ 		add: 'Sort' action: #sortCategories;
  		yourself.!

Item was added:
+ ----- Method: TestRunner>>sortCategories (in category 'accessing-categories') -----
+ sortCategories
+ 	| selectedCategory |
+ 	selectedCategory := categoryIndex ifNotNil: [categories at: categoryIndex ifAbsent: []].
+ 	categories := categories sort.
+ 	selectedCategory ifNotNil:
+ 		[categoryIndex := categories indexOf: selectedCategory].
+ 	self changed: #categoryList!



More information about the Squeak-dev mailing list