From af4748d92b3093a3279d7e641f8a628f6b91f74b Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Mon, 3 Jan 2011 04:37:29 -0500 Subject: [PATCH] Fixing browser test suite for new filenames after reorganization. Also added `global ?= window` where necessary. Firefox seems to be complaining about an unexpected lambda still, though. --- test/function_invocation.coffee | 1 + test/test.html | 43 ++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/test/function_invocation.coffee b/test/function_invocation.coffee index 5f94d17c..1e38de8d 100644 --- a/test/function_invocation.coffee +++ b/test/function_invocation.coffee @@ -234,6 +234,7 @@ val = 5 ok (func --val) is 5 test "#855: execution context for `func arr...` should be `null`", -> + global ?= window contextTest = -> eq @, global array = [] contextTest array diff --git a/test/test.html b/test/test.html index b22b37de..0798df18 100644 --- a/test/test.html +++ b/test/test.html @@ -92,30 +92,35 @@ say msg, yay run name for name in names = [ - 'arguments' + 'array_literals' 'assignment' - 'break' + 'boolean_literals' + 'cake' + 'classes' + 'command' 'comments' + 'compilation' + 'comprehensions' + 'control_flow' 'exception_handling' + 'formatting' + 'function_invocation' + 'function_literals' 'helpers' + 'importing' + 'interpolation' + 'javascript_literals' + 'number_literals' + 'object_literals' 'operators' - 'regular_expressions' - 'test_chaining' - 'test_classes' - 'test_compilation' - 'test_comprehensions' - 'test_existence' - 'test_functions' - 'test_heredocs' - 'conditionals' - 'test_literals' - 'test_pattern_matching' - 'ranges_slices_and_splices' - 'test_returns' - 'test_splats' - 'test_strings' - 'test_switch' - 'test_while' + 'option_parser' + 'range_literals' + 'regular_expression_literals' + 'repl' + 'scope' + 'slicing_and_splicing' + 'soaks' + 'string_literals' ]