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

commits at source.squeak.org commits at source.squeak.org
Wed Oct 14 13:41:15 UTC 2020


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

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

Name: Tests-mt.442
Author: mt
Time: 14 October 2020, 3:41:13.254983 pm
UUID: 305f76ef-bf52-6d46-b99b-fa02f0bd8ed5
Ancestors: Tests-mt.441

Update test example of a pragma preference to follow the usual guidelines.

=============== Diff against Tests-mt.441 ===============

Item was changed:
  ----- Method: PreferencesTestExample class>>booleanPref (in category 'preferences') -----
  booleanPref
  	<preference: 'Boolean Preference Example'
  		category: 'Examples'
  		description: 'A simple example for a boolean preference  (see PreferenceExample>>booleanPref)'
  		type: #Boolean>
+ 	^BooleanPref ifNil: [true]!
- 	^BooleanPref!

Item was changed:
  ----- Method: PreferencesTestExample class>>colorPref (in category 'preferences') -----
  colorPref
  	<preference: 'Color Preference Example'
  		category: 'Examples'
  		description: 'A simple example for a color preference (see PreferenceExample>>colorPref)'
  		type: #Color>
+ 	^ColorPref ifNil: [Color green]!
- 	^ColorPref!

Item was removed:
- ----- Method: PreferencesTestExample class>>initialize (in category 'preferences') -----
- initialize	"PreferenceExample initialize"
- 	"Initialize the default values and register preferences"
- 	TextPref := 'Hello World'.
- 	NumericPref := 1234.
- 	BooleanPref := true.
- 	ColorPref := Color green.!

Item was changed:
  ----- Method: PreferencesTestExample class>>numericPref (in category 'preferences') -----
  numericPref
  	<preference: 'Numeric Preference Example'
  		category: 'Examples'
  		description: 'A simple example for a numeric preference (see PreferenceExample>>numericPref)'
  		type: #Number>
+ 	^NumericPref ifNil: [1234]!
- 	^NumericPref!

Item was changed:
  ----- Method: PreferencesTestExample class>>textPref (in category 'preferences') -----
  textPref
  	<preference: 'Textual Preference Example'
  		category: 'Examples'
  		description: 'A simple example for a textual preference (see PreferenceExample>>textPref)'
  		type: #String>
+ 	^TextPref ifNil: ['Hello world']!
- 	^TextPref!



More information about the Squeak-dev mailing list