Add waitFor() method to TestCase

Inspired by @julesanchez.
Add test coverage for new waitFor() method
Typo fix.
Fix preexisting APIDoc typo. 0 => 10000ms
Merge branch 'waitfor' into dev-3.x
Build YUITest