Remove the window hack in test:browser.

This commit is contained in:
Sam Stephenson 2010-10-11 12:27:05 -05:00
parent f360fba47f
commit 5236bb279d
1 changed files with 3 additions and 4 deletions

View File

@ -129,7 +129,6 @@ task 'test', 'run the CoffeeScript language test suite', ->
task 'test:browser', 'run the test suite against the merged browser script', -> task 'test:browser', 'run the test suite against the merged browser script', ->
source = fs.readFileSync 'extras/coffee-script.js', 'utf-8' source = fs.readFileSync 'extras/coffee-script.js', 'utf-8'
window = addEventListener: -> result = {}
window.window = window (-> eval source).call result
(-> eval source).call window runTests result.CoffeeScript
runTests window.CoffeeScript