Browse files

Remove the window hack in test:browser.

  • Loading branch information...
1 parent f360fba commit 5236bb279d2b5c9eed7e92276527b40d5d541301 @sstephenson committed Oct 11, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 Cakefile
View
7 Cakefile
@@ -129,7 +129,6 @@ task 'test', 'run the CoffeeScript language test suite', ->
task 'test:browser', 'run the test suite against the merged browser script', ->
source = fs.readFileSync 'extras/coffee-script.js', 'utf-8'
- window = addEventListener: ->
- window.window = window
- (-> eval source).call window
- runTests window.CoffeeScript
+ result = {}
+ (-> eval source).call result
+ runTests result.CoffeeScript

0 comments on commit 5236bb2

Please sign in to comment.