mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Remove the window hack in test:browser.
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user