[GOODIE] TestingMorphDropping-nk (was Re: Help with repel in drag and drop)

Ned Konz ned at bike-nomad.com
Mon Feb 17 02:20:50 UTC 2003


On Sunday 16 February 2003 01:32 pm, Stephane Ducasse wrote:
> Hi hannes
>
> This is an example showing how you can control the drag and drop
> and put back the dropped object into the hand when the object is
> rejected.
>
> > How can I simulate drag and drop events code wise in a SUnit
> > test?
>
> Difficult I guess. Not really the first thing you should try with
> test

It's actually quite easy. You can pick up the morph to drop, then move 
the hand and tell it to drop the morph.

Look at the attached change set that shows how.
-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestingMorphDropping-nk.1.cs
Type: text/x-squeak-changeset
Size: 2221 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030216/22867a60/TestingMorphDropping-nk.1.bin


More information about the Squeak-dev mailing list