|
|
@@ -29,11 +29,11 @@ describe('weekMode', function() {
|
|
|
});
|
|
|
it('should not change height whether 4,5 or weeks', function() {
|
|
|
$('#cal').fullCalendar('gotoDate', '2009-02-01');
|
|
|
- var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-10-01');
|
|
|
- var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-06-01');
|
|
|
- var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
expect(fourWeekHeight).toEqual(fiveWeekHeight);
|
|
|
expect(fiveWeekHeight).toEqual(sixWeekHeight);
|
|
|
});
|
|
|
@@ -85,30 +85,30 @@ describe('weekMode', function() {
|
|
|
});
|
|
|
it('should increase height when moving from 6 week to 5 weeks', function() {
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-10-01');
|
|
|
- var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-06-01');
|
|
|
- var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
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 = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-10-01');
|
|
|
- var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
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 = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2009-02-01');
|
|
|
- var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
expect(fourWeekHeight).toBeGreaterThan(fiveWeekHeight);
|
|
|
});
|
|
|
it('should reduce height when moving from 4 weeks to 5 weeks', function() {
|
|
|
$('#cal').fullCalendar('gotoDate', '2009-02-01');
|
|
|
- var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-05-01');
|
|
|
- var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
expect(fourWeekHeight).toBeGreaterThan(fiveWeekHeight);
|
|
|
});
|
|
|
});
|
|
|
@@ -136,11 +136,11 @@ describe('weekMode', function() {
|
|
|
});
|
|
|
it('should not change height whether 4,5 or weeks', function() {
|
|
|
$('#cal').fullCalendar('gotoDate', '2009-02-01');
|
|
|
- var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fourWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-10-01');
|
|
|
- var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var fiveWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
$('#cal').fullCalendar('gotoDate', '2013-06-01');
|
|
|
- var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'));
|
|
|
+ var sixWeekHeight = parseInt($('.fc-week.fc-first .fc-first.fc-day div').css('min-height'), 10);
|
|
|
expect(fourWeekHeight).toEqual(fiveWeekHeight);
|
|
|
expect(fiveWeekHeight).toEqual(sixWeekHeight);
|
|
|
});
|