The Trunk: Tests-mt.382.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Tests-mt.382.mcz

commits-2
Marcel Taeumel uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-mt.382.mcz

==================== 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.'.!