From 5236bb279d2b5c9eed7e92276527b40d5d541301 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 11 Oct 2010 12:27:05 -0500 Subject: [PATCH] Remove the window hack in test:browser. --- Cakefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Cakefile b/Cakefile index fb49ac07..552d5983 100644 --- a/Cakefile +++ b/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