[squeak-dev] The Trunk: MorphicTests-nice.75.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sun Apr 25 18:23:18 UTC 2021


Hi Marcel,


we already have #setPreference:toValue:during: on Preferences class. I also had to remember this proposal + discussion: The Inbox: System-ct.1119.mcz<http://forum.world.st/The-Inbox-System-ct-1119-mcz-td5106025.html> Your counter-proposal with the preferences sandbox also sounds interesting, we could do this as well.


(Just now, I am wondering whether preferences should be process-local ... But that's enough stuff for its own discussion. :-))


Best,

Christoph

<http://www.hpi.de/>
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Donnerstag, 15. April 2021 09:39:57
An: squeak-dev
Betreff: Re: [squeak-dev] The Trunk: MorphicTests-nice.75.mcz

Hi Nicolas.

Thanks. We might want to think about a more generic way to specify system-wide preferences for tests. Maybe a new feature in TestCase (or SUnit). While I would never want to change such preferences in a specific test, I also see that the setUp-way (with that extra "reset" instVar) is quite cumbersome.

Best,
Marcel

Am 14.04.2021 19:14:23 schrieb commits at source.squeak.org <commits at source.squeak.org>:

Nicolas Cellier uploaded a new version of MorphicTests to project The Trunk:
http://source.squeak.org/trunk/MorphicTests-nice.75.mcz

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

Name: MorphicTests-nice.75
Author: nice
Time: 14 April 2021, 7:14:06.997889 pm
UUID: d87c50dd-4e44-5242-9120-37e0452ca781
Ancestors: MorphicTests-eem.74

Fix loss of useRetractableScrollBars preference

=============== Diff against MorphicTests-eem.74 ===============

Item was changed:
----- Method: TableLayoutTest>>setUp (in category 'running') -----
setUp

super setUp.
-
reset := {
([:enable | [self useRetractableScrollBars: enable]]
value: self useRetractableScrollBars)
+ }.
+ self useRetractableScrollBars: false!
- in: [:block | self useRetractableScrollBars: false].
- }.!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210425/ec0dfaf5/attachment.html>


More information about the Squeak-dev mailing list