Ryan Gahl wrote:
That would only execute the function that is attached to the onclick event (if there is one), not actually cause the onclick event to fire.

Good point. I didn't think about observers and other effects of event dispatching. In that case another thing to take a look at would be the unit testing library in script.aculo.us. It has some experimental functionality for simulating mouse events and key events:

http://dev.rubyonrails.org/browser/spinoffs/scriptaculous/src/unittest.js?format=txt

It's right at the top of this file.

Eric

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to