1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

implement setTimeout() on the fake window. otherwise the jasmine test queue does not function.

This commit is contained in:
Charles Lowell 2010-06-02 22:57:12 +03:00
parent cdcc220f4b
commit 0c571abd46

View file

@ -3,7 +3,9 @@
window = {
setInterval: noop,
clearInterval: noop,
setTimeout: noop,
setTimeout: function(callback, delay) {
callback()
},
clearTimeout: noop
}
})(function() {})