Hi, I wrote a small patch for the scriptaculous stuff, which I think adds significantly to the experience: successful drags don''t zip back to where they came from, which might confuse the user. http://dev.rubyonrails.org/ticket/6909 It apparently needs a test, though. What''s the easiest way to go about writing something that will test that? I have very little javascript experience, and even less time, so I''m looking for ''the simplest thing that could possibly work'', as they say... Thankyou! -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Answering here too: I like the idea, and we need a functional test here, i don''t really think it can be unit tested that good (no support for "simulated" events in JS). Never mind the "untested" state, it just means the patch/idea is good, but there''s no test yet. best, thomas Am 20.02.2007 um 00:03 schrieb David Welton:> > Hi, > > I wrote a small patch for the scriptaculous stuff, which I think adds > significantly to the experience: successful drags don''t zip back to > where they came from, which might confuse the user. > > http://dev.rubyonrails.org/ticket/6909 > > It apparently needs a test, though. What''s the easiest way to go > about writing something that will test that? I have very little > javascript experience, and even less time, so I''m looking for ''the > simplest thing that could possibly work'', as they say... > > Thankyou! > -- > David N. Welton > - http://www.dedasys.com/davidw/ > > Linux, Open Source Consulting > - http://www.dedasys.com/ > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Some of the existing functional tests might fit the bill with only trivial modifications. dragdrop7_test sortable3_test sortable4_test TAG On Feb 19, 2007, at 4:12 PM, Thomas Fuchs wrote:> > Answering here too: > > I like the idea, and we need a functional test here, i don''t really > think it can be unit tested that good (no support for "simulated" > events in JS). > > Never mind the "untested" state, it just means the patch/idea is > good, but there''s no test yet. > > best, > thomas > > Am 20.02.2007 um 00:03 schrieb David Welton: > >> >> Hi, >> >> I wrote a small patch for the scriptaculous stuff, which I think adds >> significantly to the experience: successful drags don''t zip back to >> where they came from, which might confuse the user. >> >> http://dev.rubyonrails.org/ticket/6909 >> >> It apparently needs a test, though. What''s the easiest way to go >> about writing something that will test that? I have very little >> javascript experience, and even less time, so I''m looking for ''the >> simplest thing that could possibly work'', as they say... >> >> Thankyou! >> -- >> David N. Welton >> - http://www.dedasys.com/davidw/ >> >> Linux, Open Source Consulting >> - http://www.dedasys.com/ >> >>> > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Although the tests you need here are of the functional type, you might want to have a look at how testing is done here: http://prototypejs.org/contribute and by downloading Thomas'' excellent presentation available here: http://mir.aculo.us/2006/9/16/adventures-in-javascript-testing Good luck, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ok, I had a stab at it: http://dev.rubyonrails.org/ticket/6909 It could probably be improved further, but I''m using the patch in production code, and my users are satisfied, because things are just a bit clearer in that drops don''t whiz back to where they came from if they''re successful. Thankyou! -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---