Automated UI Tests and Demos

Automated UI Tests and Demos

I figured out a way to automate UI tests. Take a look:
<a href="http://dev.jquery.com/view/trunk/plugins/ui/tests/auto.html">http://dev.jquery.com/view/trunk/plugins/ui/tests/auto.html</a>
It's just a proof-of-concept at this point. It's not a plugin yet, only one test so far, it's not easy to write others (yet), but it should give you an idea. Eventually we can have individual automated test pages for each plugin/module and a master automated UI test page for the suite. These won't be the easiest test cases to write, but they'll be slick (and fun to watch! :)
Known issues at this point:
- only tested in FF (can be made to work in others)
- real mousemoves during tests can interfere - these could be ignored by a test flag, for example sent in plugin options: if (o.isTest
&& ev.isTrusted) return false;
- the cursor looks like Windows. We'll add two other cursor sets (Linux, OSX) and swap based on OS detect
Other ideas:
- Add record and playback feature, to make test writing easy
- ???
Also, let's use this to make some super-snazzy automated demos.
- Richard