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', ->
|
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
|
|
||||||
|
|
Loading…
Reference in New Issue