Brian, we use unittest.js from Scriptaculous. It could do some basic event simulation as well. There's also a somewhat cross-browser solution that extends on top of unittest.js [1]
- kangax [1] http://github.com/kangax/protolicious/tree/master/event.simulate.js On Apr 23, 11:48 pm, Brian Moschel <[EMAIL PROTECTED]> wrote: > How do you guys test Scriptaculous UI components? If you’re reading > this, you’re probably an expert JS developer, so you know how much the > state of JavaScript testing sucks. > > Developers generally neglect JS testing because there’s really nothing > out there that let's you simulate user interactions easily. So we > built the Test plugin for JavaScriptMVC (http://javascriptmvc.com/ > learningcenter/test/index.html) to do just that. > > It lets you simulate every major DOM event, as well as some > combination events like Write and Drag, simulate Ajax, and use > assertions. It runs functional and unit tests in a separate console > window. Best of all, it is interdependent with Prototype. We’ve been > using it to test our JS UI widgets, and I think it could be very > useful for doing the same for Scriptaculous UI widgets. We've made a > demo of testing with sorttable here > -http://javascriptmvc.com/learningcenter/test/demo.html > > I’d love to hear feedback on it (as brutally honest as possible). Is > better testing something Prototype/Scriptaculous developers are > craving? > > Cheers, > Brian Moschel --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
