hacks.js 677 B

12345678910111213141516171819202122
  1. beforeEach(function() {
  2. // HACK. PhantomJS fails otherwise
  3. $.fullCalendar.Calendar.defaults.windowResizeDelay = 200
  4. // On real devices, when a click-like touch interaction happens, there is a preiod of time where mouse events
  5. // are ignores. Since ignore peroid is global, and might span across tests, disable it.
  6. // The simulates touch events do not fire these mouse events anyway.
  7. $.fullCalendar.touchMouseIgnoreWait = 0
  8. // increase the default timeout
  9. jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000
  10. })
  11. // Destroy all calendars afterwards, to prevent memory leaks
  12. // (not the best place for this)
  13. afterEach(function() {
  14. $('.fc').fullCalendar('destroy')
  15. })