A new version of MorphicTests was added to project The Inbox:
http://source.squeak.org/inbox/MorphicTests-dcorking.21.mcz==================== Summary ====================
Name: MorphicTests-dcorking.21
Author: dcorking
Time: 25 January 2013, 3:02:39.426 pm
UUID: 31317e0f-6053-4b0d-95a5-c8f5680c2b1c
Ancestors: MorphicTests-dcorking.20
Simplify dateChanged event test for CalendarChooserMorph.
=============== Diff against MorphicTests-dcorking.19 ===============
Item was changed:
TestCase subclass: #CalendarChooserTest
+ instanceVariableNames: 'defaultChooser secondChooser eventReceived'
- instanceVariableNames: 'defaultChooser secondChooser'
classVariableNames: ''
poolDictionaries: ''
category: 'MorphicTests-CalendarChooser'!
Item was added:
+ ----- Method: CalendarChooserTest>>expectedFailures (in category 'testing') -----
+ expectedFailures
+ ^ #(testShouldNotSendDateChangedWhenUnchanged)!
Item was added:
+ ----- Method: CalendarChooserTest>>testShouldNotSendDateChangedWhenUnchanged (in category 'testing') -----
+ testShouldNotSendDateChangedWhenUnchanged
+ self fail "not implemented"!
Item was added:
+ ----- Method: CalendarChooserTest>>testShouldSendDateChangedEvent (in category 'testing') -----
+ testShouldSendDateChangedEvent
+ "I register myself to receive an event triggered by CalendarChooserMorph#date: "
+
+ secondChooser when: #dateChanged evaluate: [eventReceived := true].
+ secondChooser date: (secondChooser date addDays: 1). "trigger event"
+ self assert: [eventReceived = true].
+ secondChooser date: (secondChooser date addDays: -1) "clean up fixture" !