pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

withWindowDo: should return the result of the block #1555

Closed demarey closed 3 weeks ago

demarey commented 3 weeks ago

Else, if you would like to trigger the ok action, you will not get back the result of the actions (e.g. selected item)

estebanlm commented 3 weeks ago

indeed

estebanlm commented 3 weeks ago

but then... what it returns if there is no window? still answering self sounds weak (I very much prefer nil in this case)

demarey commented 3 weeks ago

but then... what it returns if there is no window? still answering self sounds weak (I very much prefer nil in this case)

yes, I agree. I will change it to return nil