2
0
Эх сурвалжийг харах

help tests deal with global mouse ignore

Adam Shaw 9 жил өмнө
parent
commit
eb0703eb8b

+ 5 - 0
tests/lib/jasmine-ext.js

@@ -4,6 +4,11 @@ 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;