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:
		
							parent
							
								
									cdcc220f4b
								
							
						
					
					
						commit
						0c571abd46
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,9 @@
 | 
			
		|||
  window = {
 | 
			
		||||
    setInterval: noop,
 | 
			
		||||
    clearInterval: noop,
 | 
			
		||||
    setTimeout: noop,
 | 
			
		||||
    setTimeout: function(callback, delay) {
 | 
			
		||||
      callback()
 | 
			
		||||
    },
 | 
			
		||||
    clearTimeout: noop
 | 
			
		||||
  }
 | 
			
		||||
})(function() {})
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue