Sha256: a8c43df394a4145d0a4fcf1b04c039c30a69bb45b9119dd0cf74c743ffad949d

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

module "page events"

test "document DOMContentLoaded", ->
  el = addTimeEl()
  triggerEvent "DOMContentLoaded"
  ok getText el

test "document time:elapse", ->
  el = addTimeEl()
  triggerEvent "time:elapse"
  ok getText el

test "document page:update with Turbolinks on", ->
  el = addTimeEl()
  triggerEvent "page:update"
  ok not getText el

  original = window.Turbolinks
  window.Turbolinks = { supported: true }

  triggerEvent "DOMContentLoaded"
  triggerEvent "page:update"
  ok getText el

  window.Turbolinks = original

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
local_time-1.0.3 test/javascripts/src/page_events_test.js.coffee
local_time-1.0.2 test/javascripts/local_time/page_events_test.js.coffee
local_time-1.0.1 test/javascripts/local_time/page_events_test.js.coffee
local_time-1.0.0 test/javascripts/local_time/page_events_test.js.coffee