Sha256: 128be60b5dde9d01860484a8c2ac3703580bf5e1632ebf97c09391745cf8d562

Contents?: true

Size: 460 Bytes

Versions: 20

Compression:

Stored size: 460 Bytes

Contents

# Importing
# ---------

unless window? or testingBrowser?
  test "coffeescript modules can be imported and executed", ->

    magicKey = __filename
    magicValue = 0xFFFF

    if global[magicKey]?
      if exports?
        local = magicValue
        exports.method = -> local
    else
      global[magicKey] = {}
      if require?.extensions? or require?.registerExtension?
        ok require(__filename).method() is magicValue
      delete global[magicKey]

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
guard-mthaml-0.4.0 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.3.1 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.3.0 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.5 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.4 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.3 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.2 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.1 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.2.0 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
guard-mthaml-0.1.0 vendor/coffeescript/coffeescript/tests/cases/importing.coffee
spade-packager-0.1.0.1 packages/coffee-script/test/importing.coffee
spade-packager-0.1.0 packages/coffee-script/test/importing.coffee
spade-0.0.8.1 packages/coffee-script/test/importing.coffee
spade-0.0.7 packages/coffee-script/test/importing.coffee
spade-0.0.6 packages/coffee-script/test/importing.coffee
spade-0.0.5 packages/coffee-script/test/importing.coffee
spade-0.0.4 packages/coffee-script/test/importing.coffee
spade-0.0.3 packages/coffee-script/test/importing.coffee
spade-0.0.2 packages/coffee-script/test/importing.coffee
spade-0.0.1 packages/coffee-script/test/importing.coffee