Hello,

I am trying to automate some unit tests and test the drag/drop
functionality of two sortable regions. I am lost as to how to test
this, and looking at the included unit tests, doesn't seem to help.

I have two divs which are sortable and include divs within them:
                        <div id="regionA">
                                <div id="WindowA_1">1
                                </div>
                                <div id="WindowA_2">2
                                </div>
                                <div id="WindowA_3">3
                                </div>
                        </div>
                        <div id="regionB">
                                <div id="WindowB_7">7
                                </div>
                                <div id="WindowB_8">8
                                </div>
                                <div id="WindowB_9">9
                                </div>
                        </div>

I have played around with Sortable.setSequence, but all that does is
drop the element from one region and doesnt add it to the next.

Sortable.setSequence('regionB', ['7','8','9','2']);
Sortable.setSequence('regionA', ['1','3']); // we moved div "2" to
regionB

The above calls, remove the "2" div from regionA, but never adds it to
regionB.

So is there any way to programmatically force the move of a div in the
DOM?


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to