[Pkg] SystemEditor: SystemEditor-Tests-mtf.156.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Sun Nov 30 03:39:55 UTC 2008


A new version of SystemEditor-Tests was added to project SystemEditor:
http://www.squeaksource.com/SystemEditor/SystemEditor-Tests-mtf.156.mcz

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

Name: SystemEditor-Tests-mtf.156
Author: mtf
Time: 29 November 2008, 8:39:43 pm
UUID: 6fb1ec0f-ba86-45b2-877a-3c1a401306a8
Ancestors: SystemEditor-Tests-mtf.155

added andreas's instance cleanup test

=============== Diff against SystemEditor-Tests-mtf.155 ===============

Item was added:
+ ----- Method: SystemEditorCommitTest>>testCleanupOfOldInstances (in category 'tests') -----
+ testCleanupOfOldInstances                                                                 
+    "Ensure that old instance are cleaned up properly"                                     
+    | instance ed |
+ instance := CleanupTestClass new.                                                      
+    Smalltalk garbageCollect. "for easier results make it old"                             
+                                                                                           
+    self assert: CleanupTestClass instanceCount = 1.                                       
+                                                                                           
+    ed := SystemEditor new.                                                                
+    (ed at: #CleanupTestClass) addInstVarName: #whatever.                                  
+    ed commit.
+ 
+    self assert: CleanupTestClass instanceCount = 1.
+ 
+    ed := SystemEditor new.
+    (ed at: #CleanupTestClass) removeInstVarName: #whatever.
+    ed commit.
+ 
+    self assert: CleanupTestClass instanceCount = 1.
+ !

Item was added:
+ Object subclass: #CleanupTestClass
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'SystemEditor-Tests'!



More information about the Packages mailing list