[squeak-dev] The Trunk: Tests-cwp.292.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Mar 29 17:40:38 UTC 2014


Colin Putney uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cwp.292.mcz

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

Name: Tests-cwp.292
Author: cwp
Time: 29 March 2014, 12:39:06.285 pm
UUID: 6b1fa43c-b225-41c8-9729-9bad7b33f4df
Ancestors: Tests-cwp.291

Add tests to ensure that environment observers get cleaned up properly.

=============== Diff against Tests-cwp.291 ===============

Item was added:
+ ----- Method: EnvironmentTest>>testDestroyRemovesObservers (in category 'observation tests') -----
+ testDestroyRemovesObservers
+ 	| foreign |
+ 	foreign := Environment withName: #Foreign.
+ 	foreign exportSelf.
+ 	env import: foreign.
+ 	foreign destroy.
+ 	self assert: 0 equals: (env instVarNamed: 'policies') size!

Item was added:
+ ----- Method: EnvironmentTest>>testDestroyStopsObserving (in category 'observation tests') -----
+ testDestroyStopsObserving
+ 	| foreign |
+ 	foreign := Environment withName: #Foreign.
+ 	foreign exportSelf.
+ 	env import: foreign.
+ 	env destroy.
+ 	self assert: 0 equals: (foreign instVarNamed: 'observers') size!



More information about the Squeak-dev mailing list