Parcourir la source

automated test for issue 2350

Adam Shaw il y a 11 ans
Parent
commit
2d14aca0ff
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      tests/automated/eventLimit-popover.js

+ 11 - 0
tests/automated/eventLimit-popover.js

@@ -79,6 +79,17 @@ describe('eventLimit popover', function() {
 			expect($('.fc-more-popover .fc-event').length).toBeGreaterThan(1);
 			expect($('.fc-more-popover .fc-event').length).toBeGreaterThan(1);
 			expect($('.fc-more-popover .fc-bgevent').length).toBe(0);
 			expect($('.fc-more-popover .fc-bgevent').length).toBe(0);
 		});
 		});
+
+		it('works with events that have invalid end times', function() {
+			options.events = [
+				{ title: 'event1', start: '2014-07-29', end: '2014-07-29' },
+				{ title: 'event2', start: '2014-07-29', end: '2014-07-28' },
+				{ title: 'event3', start: '2014-07-29T00:00:00', end: '2014-07-29T00:00:00' },
+				{ title: 'event4', start: '2014-07-29T00:00:00', end: '2014-07-28T23:00:00' }
+			];
+			init();
+			expect($('.fc-more-popover .fc-event').length).toBe(4);
+		});
 	});
 	});
 
 
 	[ 'basicWeek', 'agendaWeek' ].forEach(function(viewName) {
 	[ 'basicWeek', 'agendaWeek' ].forEach(function(viewName) {