Remove the window hack in test:browser.
This commit is contained in:
parent
f360fba47f
commit
5236bb279d
7
Cakefile
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
|
||||
|
|
Loading…
Reference in New Issue