From 0c571abd46a93d5b6a226c66992c7b20750765ea Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Wed, 2 Jun 2010 22:57:12 +0300 Subject: [PATCH] implement setTimeout() on the fake window. otherwise the jasmine test queue does not function. --- contrib/v8/jasmine/window.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/v8/jasmine/window.js b/contrib/v8/jasmine/window.js index 15b0b8a..e12216d 100644 --- a/contrib/v8/jasmine/window.js +++ b/contrib/v8/jasmine/window.js @@ -3,7 +3,9 @@ window = { setInterval: noop, clearInterval: noop, - setTimeout: noop, + setTimeout: function(callback, delay) { + callback() + }, clearTimeout: noop } })(function() {}) \ No newline at end of file