mrjoelkemp / html5-local-redis

Redis-like API for HTML5 Local Storage
http://mrjoelkemp.github.com/html5-local-redis/
MIT License
20 stars 0 forks source link

Expiration Specs failing in Firefox #26

Open mrjoelkemp opened 12 years ago

mrjoelkemp commented 12 years ago

Firefox is slow and fails on expiration specs.

Possible Solution: think about avoiding any waitFor loops due to JS execution time differences. Specs might be assuming that execution is shorter (takes fewer ms) than what's actually required in other browsers.

mrjoelkemp commented 12 years ago

Suite passes in Safari but takes 96secs and hangs on a few specs. Firefox finishes suite in about 2secs but randomly fails on a few expiration-centric specs.

Jasmine uses setTimeout for the callbacks supplied in runs following waits() and waitsFor() blocks. This could be the main source of the timing problem.