mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
.
This commit is contained in:
+14
-14
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user