Prechádzať zdrojové kódy

automated test for issue 2433

Adam Shaw 11 rokov pred
rodič
commit
7c13d7cb07
1 zmenil súbory, kde vykonal 18 pridanie a 0 odobranie
  1. 18 0
      tests/automated/external-dnd.js

+ 18 - 0
tests/automated/external-dnd.js

@@ -301,4 +301,22 @@ describe('external drag and drop', function() {
 		});
 	});
 
+	// Issue 2433
+	it('should not have drag handlers cleared when other calendar navigates', function() {
+
+		$('#cal').after('<div id="cal2"/>');
+
+		var el1 = $('#cal').fullCalendar(options);
+		var el2 = $('#cal2').fullCalendar(options);
+		var beforeCnt = countHandlers(document);
+		var afterCnt;
+
+		el1.fullCalendar('next');
+		afterCnt = countHandlers(document);
+		expect(beforeCnt).toBe(afterCnt);
+
+		el1.remove();
+		el2.remove();
+	});
+
 });