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