Patrick Rein uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-pre.407.mcz
==================== Summary ====================
Name: Tests-pre.407
Author: pre
Time: 24 January 2019, 5:33:33.982474 pm
UUID: cc0561a0-4ea8-4a46-898a-08d548a820e9
Ancestors: Tests-tpr.406
Reverts a re-categorization of a method in a Monticello mock class as the previous category was relevant for some test cases.
=============== Diff against Tests-tpr.406 ===============
Item was changed:
+ ----- Method: MCMockClassA>>d (in category 'as yet classified') -----
- ----- Method: MCMockClassA>>d (in category 'numeric') -----
d
^ 'd'!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1053.mcz
==================== Summary ====================
Name: System-mt.1053
Author: mt
Time: 24 January 2019, 2:13:52.854611 pm
UUID: 3877b382-e5b6-634b-944f-d484544f0542
Ancestors: System-mt.1052
Found a better API for the pragma-clean-up. Accidentally removed the removal of obsolete preferences in the previous commit. Fix that, too.
=============== Diff against System-mt.1052 ===============
Item was changed:
----- Method: Preferences class>>cleanUp (in category 'class initialization') -----
cleanUp
- "Synchronize the cache for pragma preferences. Note that the actual preferences values are stored in class variables. So, no such value gets lost if we remove all such preferences from that cache."
+ "Synchronize the cache for pragma preferences. Note that the actual preferences values are stored in class variables. So, no such value gets lost if we remove all such preferences from that cache."
+ self removeAllPreferencesSuchThat: [:preference |
+ preference isPragmaPreference].
- "1/2 - Remove all pragma-preference objects from the dictionary of preferences."
- self atomicUpdatePreferences: [:copyOfDictionaryOfPreferences |
- copyOfDictionaryOfPreferences keys do: [:key |
- (copyOfDictionaryOfPreferences at: key) isPragmaPreference
- ifTrue: [copyOfDictionaryOfPreferences removeKey: key]]].
-
- "2/2 - Re-create all those pragma-preference objects."
SystemNavigation default allSelectorsAndMethodsDo: [:behavior :selector :method |
+ method pragmas do: [:pragma |
+ self addPragmaPreference: pragma]].
+
+ "Remove obsolete (non-pragma) preferences."
+ self removeObsolete.
+ !
- method pragmas do: [:pragma | self addPragmaPreference: pragma]].!
Marcel Taeumel uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-mt.1052.mcz
==================== Summary ====================
Name: System-mt.1052
Author: mt
Time: 24 January 2019, 2:05:11.02266 pm
UUID: 6db55eef-6153-0949-b109-6cf5ab454a91
Ancestors: System-mt.1051
Synchronize preference cache for pragma-preferences on clean-up. For example, the 5.2 release misses the "sort message categories alphabetically" entry in our Preference Browser.
=============== Diff against System-mt.1051 ===============
Item was added:
+ ----- Method: PragmaPreference>>isPragmaPreference (in category 'testing') -----
+ isPragmaPreference
+
+ ^ true!
Item was added:
+ ----- Method: Preference>>isPragmaPreference (in category 'testing') -----
+ isPragmaPreference
+
+ ^ false!
Item was changed:
+ ----- Method: Preferences class>>cleanUp (in category 'class initialization') -----
- ----- Method: Preferences class>>cleanUp (in category 'initialization') -----
cleanUp
+ "Synchronize the cache for pragma preferences. Note that the actual preferences values are stored in class variables. So, no such value gets lost if we remove all such preferences from that cache."
+
+ "1/2 - Remove all pragma-preference objects from the dictionary of preferences."
+ self atomicUpdatePreferences: [:copyOfDictionaryOfPreferences |
+ copyOfDictionaryOfPreferences keys do: [:key |
+ (copyOfDictionaryOfPreferences at: key) isPragmaPreference
+ ifTrue: [copyOfDictionaryOfPreferences removeKey: key]]].
+
+ "2/2 - Re-create all those pragma-preference objects."
+ SystemNavigation default allSelectorsAndMethodsDo: [:behavior :selector :method |
+ method pragmas do: [:pragma | self addPragmaPreference: pragma]].!
- self removeObsolete.!
Patrick Rein uploaded a new version of Chronology-Tests to project The Trunk:
http://source.squeak.org/trunk/Chronology-Tests-pre.17.mcz
==================== Summary ====================
Name: Chronology-Tests-pre.17
Author: pre
Time: 23 January 2019, 4:10:44.817474 pm
UUID: 1b42bb75-6b0c-024f-b3c1-0d04823785bd
Ancestors: Chronology-Tests-pre.16
Updates testWait to use the standard library constructor for millisecond Durations
=============== Diff against Chronology-Tests-pre.16 ===============
Item was changed:
----- Method: DurationTest>>testWait (in category 'tests') -----
testWait
| start |
start := DateAndTime new.
+ (Duration milliSeconds: 500) wait.
+ self assert: DateAndTime now - start > (Duration milliSeconds: 500). !
- (Duration milliseconds: 500) wait.
- self assert: DateAndTime now - start > (Duration milliseconds: 500). !