Simple. You wouldn't. Testing JavaScript using JavaScript is like letting bank robbers police each other.
Seriously though, there is a decent tool for doing this in the Dojo universe. My hackathon project for next Thursday will be to make the Dojo doh.robot run using our testing system. Longterm I plan on collaborating with Dojo and many more to standardize or conventionalize automated UI testing. — Thomas Aylott / SubtleGradient.com (from iPhone 4) On Oct 19, 2010, at 2:57 PM, Greg Moeck <[email protected]> wrote: > I'm trying to write some integration/acceptance tests for an > application that I'm writing that uses Sortables, but I'm having some > trouble simulating the dragging. My plan was merely fire the events > for mousedown, movemouse, and and mouseup, but when I use > element.fireEvent, the Sortables start method fails, since a true > event is not passed in. I'm pretty sure it's just my lack of > understanding of javascript, but how would you go about doing > something like this?
