Sha256: 0ef089f7b550ebbedecf3d11b17c0161280be19915424167ad113bd4464422e0

Contents?: true

Size: 435 Bytes

Versions: 9

Compression:

Stored size: 435 Bytes

Contents

describe "InlinePreloader", ->

  it "should load JS", ->
    window.variable_assigned_on_load = undefined
    callback = sinon.spy()

    runs ->
      InlinePreloader.load [['/spec/javascripts/support/assets/test.js']],
        complete: callback

    waits 100

    runs ->
      expect(callback.callCount).toEqual 1
      expect(window.variable_assigned_on_load).toEqual 'yapyap'
      window.variable_assigned_on_load = undefined

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
joosy-1.1.2 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.1.1 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.1.0 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.1.0.alpha.3 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.1.0.alpha.2 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.1.0.alpha.1 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.0.0.RC7 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.0.0.RC6 spec/javascripts/joosy/preloaders/inline_spec.js.coffee
joosy-1.0.0.RC5 spec/javascripts/joosy/preloaders/inline_spec.js.coffee