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.
This commit is contained in:
Michael Ficarra 2011-01-03 04:37:29 -05:00
parent 240a0b9c93
commit af4748d92b
2 changed files with 25 additions and 19 deletions

View File

@ -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

View File

@ -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'
]
</script>