c222fc5d0b
There are a few problems with sleeping before checking the condition for the first time: * It slows down tests. * The predicate is never checked if the interval duration is greater than the timeout. * 0 can't be used to test if the condition is currently true. There is a minor disadvantage to sleeping before checking: It will cause more tests to run without an asynchronous interruption, which could theoretically mask some async bugs. |
||
---|---|---|
.. | ||
lib | ||
specs | ||
travis | ||
helper.js | ||
index.html | ||
runner.css | ||
runner.js |