This commit is contained in:
Sean Kenny
2014-09-23 19:06:25 +01:00
parent 06c746a13d
commit 0401a72249
+14 -14
View File
@@ -84,20 +84,20 @@ describe('weekMode', function() {
var weekCount = $('.fc-week').length;
expect(weekCount).toEqual(6);
});
it('should increase height when moving from 6 week to 5 weeks', function() {
$('#cal').fullCalendar('gotoDate', '2013-10-01');
var fiveWeekHeight = $('.fc-week:first').outerHeight();
$('#cal').fullCalendar('gotoDate', '2013-06-01');
var sixWeekHeight = $('.fc-week:first').outerHeight();
expect(fiveWeekHeight).toBeGreaterThan(sixWeekHeight);
});
it('should reduce height when moving from 5 weeks to 6 weeks', function() {
$('#cal').fullCalendar('gotoDate', '2013-06-01');
var sixWeekHeight = $('.fc-week:first').outerHeight();
$('#cal').fullCalendar('gotoDate', '2013-10-01');
var fiveWeekHeight = $('.fc-week:first').outerHeight();
expect(fiveWeekHeight).toBeGreaterThan(sixWeekHeight);
});
// it('should increase height when moving from 6 week to 5 weeks', function() {
// $('#cal').fullCalendar('gotoDate', '2013-10-01');
// var fiveWeekHeight = $('.fc-week:first').outerHeight();
// $('#cal').fullCalendar('gotoDate', '2013-06-01');
// var sixWeekHeight = $('.fc-week:first').outerHeight();
// expect(fiveWeekHeight).toBeGreaterThan(sixWeekHeight);
// });
// it('should reduce height when moving from 5 weeks to 6 weeks', function() {
// $('#cal').fullCalendar('gotoDate', '2013-06-01');
// var sixWeekHeight = $('.fc-week:first').outerHeight();
// $('#cal').fullCalendar('gotoDate', '2013-10-01');
// var fiveWeekHeight = $('.fc-week:first').outerHeight();
// expect(fiveWeekHeight).toBeGreaterThan(sixWeekHeight);
// });
it('should increase height when moving from 5 weeks to 4 weeks', function() {
$('#cal').fullCalendar('gotoDate', '2013-05-01');
var fiveWeekHeight = $('.fc-week:first').outerHeight();