mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
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:
parent
240a0b9c93
commit
af4748d92b
2 changed files with 25 additions and 19 deletions
|
@ -234,6 +234,7 @@ val = 5
|
||||||
ok (func --val) is 5
|
ok (func --val) is 5
|
||||||
|
|
||||||
test "#855: execution context for `func arr...` should be `null`", ->
|
test "#855: execution context for `func arr...` should be `null`", ->
|
||||||
|
global ?= window
|
||||||
contextTest = -> eq @, global
|
contextTest = -> eq @, global
|
||||||
array = []
|
array = []
|
||||||
contextTest array
|
contextTest array
|
||||||
|
|
|
@ -92,30 +92,35 @@
|
||||||
say msg, yay
|
say msg, yay
|
||||||
|
|
||||||
run name for name in names = [
|
run name for name in names = [
|
||||||
'arguments'
|
'array_literals'
|
||||||
'assignment'
|
'assignment'
|
||||||
'break'
|
'boolean_literals'
|
||||||
|
'cake'
|
||||||
|
'classes'
|
||||||
|
'command'
|
||||||
'comments'
|
'comments'
|
||||||
|
'compilation'
|
||||||
|
'comprehensions'
|
||||||
|
'control_flow'
|
||||||
'exception_handling'
|
'exception_handling'
|
||||||
|
'formatting'
|
||||||
|
'function_invocation'
|
||||||
|
'function_literals'
|
||||||
'helpers'
|
'helpers'
|
||||||
|
'importing'
|
||||||
|
'interpolation'
|
||||||
|
'javascript_literals'
|
||||||
|
'number_literals'
|
||||||
|
'object_literals'
|
||||||
'operators'
|
'operators'
|
||||||
'regular_expressions'
|
'option_parser'
|
||||||
'test_chaining'
|
'range_literals'
|
||||||
'test_classes'
|
'regular_expression_literals'
|
||||||
'test_compilation'
|
'repl'
|
||||||
'test_comprehensions'
|
'scope'
|
||||||
'test_existence'
|
'slicing_and_splicing'
|
||||||
'test_functions'
|
'soaks'
|
||||||
'test_heredocs'
|
'string_literals'
|
||||||
'conditionals'
|
|
||||||
'test_literals'
|
|
||||||
'test_pattern_matching'
|
|
||||||
'ranges_slices_and_splices'
|
|
||||||
'test_returns'
|
|
||||||
'test_splats'
|
|
||||||
'test_strings'
|
|
||||||
'test_switch'
|
|
||||||
'test_while'
|
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue