[squeak-dev] The Trunk: Tests-mt.382.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Sep 18 07:24:20 UTC 2017

Marcel Taeumel uploaded a new version of Tests to project The Trunk:

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

Name: Tests-mt.382
Author: mt
Time: 18 September 2017, 9:24:02.443429 am
UUID: e9db6354-5602-3d4a-b944-ad65501bad8d
Ancestors: Tests-eem.381

Adds a test to verify the integrity of the environment's user interface themes wrt. scope.

=============== Diff against Tests-eem.381 ===============

Item was added:
+ ----- Method: UserInterfaceThemeTest>>test27ScopeIntegrity (in category 'tests') -----
+ test27ScopeIntegrity
+ 	"If application code manages to use Object >> #userInterfaceTheme without invoking the DNU dispatch directly afterwards, the theme's scope might get inconsistent. Even though this should usually never happen, check for it to be sure."
+ 	| issues |
+ 	issues := OrderedCollection new.
+ 	UserInterfaceTheme allThemes do: [:uit |
+ 		(uit instVarNamed: #scope) isEmpty ifFalse: [issues add: uit]].
+ 	self assert: issues isEmpty description: 'Some user interface themes have an inconsistent scope state, which can interfere with GC.'.!

More information about the Squeak-dev mailing list