implement function waitFor() for yui test
fix a mistake : call setTimeout with a function a not a string
put condition evaluation on it's own function
do not store remaining time of waitFor in object, but pass it as an argument.
avoid eval() : change condition parameter to be a function.