|
|
@@ -21,17 +21,17 @@ describe('button text', function() {
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
// will have button icons, to text will be empty
|
|
|
- expect($('.fc-button-next')).toHaveText('');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('');
|
|
|
- expect($('.fc-button-prev')).toHaveText('');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('today');
|
|
|
- expect($('.fc-button-month')).toHaveText('month');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('week');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('week');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('day');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('day');
|
|
|
+ expect($('.fc-next-button')).toHaveText('');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('today');
|
|
|
+ expect($('.fc-month-button')).toHaveText('month');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('week');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('week');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('day');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('day');
|
|
|
});
|
|
|
|
|
|
it('should contain specified text values', function() {
|
|
|
@@ -47,17 +47,17 @@ describe('button text', function() {
|
|
|
};
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
- expect($('.fc-button-next')).toHaveText('->');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('-->');
|
|
|
- expect($('.fc-button-prev')).toHaveText('<-');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('<--');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('tidei');
|
|
|
- expect($('.fc-button-month')).toHaveText('mun');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('wiki');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('wiki');
|
|
|
+ expect($('.fc-next-button')).toHaveText('->');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('-->');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('<-');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('<--');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('tidei');
|
|
|
+ expect($('.fc-month-button')).toHaveText('mun');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('wiki');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('wiki');
|
|
|
});
|
|
|
|
|
|
});
|
|
|
@@ -72,17 +72,17 @@ describe('button text', function() {
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
// will have actual text now
|
|
|
- expect($('.fc-button-next')).toHaveText('next');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('next year');
|
|
|
- expect($('.fc-button-prev')).toHaveText('prev');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('prev year');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('today');
|
|
|
- expect($('.fc-button-month')).toHaveText('month');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('week');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('week');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('day');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('day');
|
|
|
+ expect($('.fc-next-button')).toHaveText('next');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('next year');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('prev');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('prev year');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('today');
|
|
|
+ expect($('.fc-month-button')).toHaveText('month');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('week');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('week');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('day');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('day');
|
|
|
});
|
|
|
|
|
|
it('should contain specified text values', function() {
|
|
|
@@ -98,17 +98,17 @@ describe('button text', function() {
|
|
|
};
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
- expect($('.fc-button-next')).toHaveText('->');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('-->');
|
|
|
- expect($('.fc-button-prev')).toHaveText('<-');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('<--');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('tidei');
|
|
|
- expect($('.fc-button-month')).toHaveText('mun');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('wiki');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('wiki');
|
|
|
+ expect($('.fc-next-button')).toHaveText('->');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('-->');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('<-');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('<--');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('tidei');
|
|
|
+ expect($('.fc-month-button')).toHaveText('mun');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('wiki');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('wiki');
|
|
|
});
|
|
|
|
|
|
});
|
|
|
@@ -127,17 +127,17 @@ describe('button text', function() {
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
// will contain icons, so will contain no text
|
|
|
- expect($('.fc-button-next')).toHaveText('');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('');
|
|
|
- expect($('.fc-button-prev')).toHaveText('');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('Aujourd\'hui');
|
|
|
- expect($('.fc-button-month')).toHaveText('Mois');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('Semaine');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('Semaine');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('Jour');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('Jour');
|
|
|
+ expect($('.fc-next-button')).toHaveText('');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('Aujourd\'hui');
|
|
|
+ expect($('.fc-month-button')).toHaveText('Mois');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('Semaine');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('Semaine');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('Jour');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('Jour');
|
|
|
});
|
|
|
|
|
|
it('should contain specified text values', function() {
|
|
|
@@ -153,17 +153,17 @@ describe('button text', function() {
|
|
|
};
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
- expect($('.fc-button-next')).toHaveText('->');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('-->');
|
|
|
- expect($('.fc-button-prev')).toHaveText('<-');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('<--');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('tidei');
|
|
|
- expect($('.fc-button-month')).toHaveText('mun');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('wiki');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('wiki');
|
|
|
+ expect($('.fc-next-button')).toHaveText('->');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('-->');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('<-');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('<--');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('tidei');
|
|
|
+ expect($('.fc-month-button')).toHaveText('mun');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('wiki');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('wiki');
|
|
|
});
|
|
|
|
|
|
});
|
|
|
@@ -178,18 +178,18 @@ describe('button text', function() {
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
// will have the language's actual text now
|
|
|
- expect($('.fc-button-next')).toHaveText('Suivant');
|
|
|
- expect($('.fc-button-prev')).toHaveText('Précédent');
|
|
|
+ expect($('.fc-next-button')).toHaveText('Suivant');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('Précédent');
|
|
|
//// languages files don't have data for prev/next *year*
|
|
|
- //expect($('.fc-button-nextYear')).toHaveText('Suivant');
|
|
|
- //expect($('.fc-button-prevYear')).toHaveText('Précédent');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('Aujourd\'hui');
|
|
|
- expect($('.fc-button-month')).toHaveText('Mois');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('Semaine');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('Semaine');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('Jour');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('Jour');
|
|
|
+ //expect($('.fc-nextYear-button')).toHaveText('Suivant');
|
|
|
+ //expect($('.fc-prevYear-button')).toHaveText('Précédent');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('Aujourd\'hui');
|
|
|
+ expect($('.fc-month-button')).toHaveText('Mois');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('Semaine');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('Semaine');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('Jour');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('Jour');
|
|
|
});
|
|
|
|
|
|
it('should contain specified text values', function() {
|
|
|
@@ -205,17 +205,17 @@ describe('button text', function() {
|
|
|
};
|
|
|
$('#cal').fullCalendar(settings);
|
|
|
|
|
|
- expect($('.fc-button-next')).toHaveText('->');
|
|
|
- expect($('.fc-button-nextYear')).toHaveText('-->');
|
|
|
- expect($('.fc-button-prev')).toHaveText('<-');
|
|
|
- expect($('.fc-button-prevYear')).toHaveText('<--');
|
|
|
-
|
|
|
- expect($('.fc-button-today')).toHaveText('tidei');
|
|
|
- expect($('.fc-button-month')).toHaveText('mun');
|
|
|
- expect($('.fc-button-agendaDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-agendaWeek')).toHaveText('wiki');
|
|
|
- expect($('.fc-button-basicDay')).toHaveText('dei');
|
|
|
- expect($('.fc-button-basicWeek')).toHaveText('wiki');
|
|
|
+ expect($('.fc-next-button')).toHaveText('->');
|
|
|
+ expect($('.fc-nextYear-button')).toHaveText('-->');
|
|
|
+ expect($('.fc-prev-button')).toHaveText('<-');
|
|
|
+ expect($('.fc-prevYear-button')).toHaveText('<--');
|
|
|
+
|
|
|
+ expect($('.fc-today-button')).toHaveText('tidei');
|
|
|
+ expect($('.fc-month-button')).toHaveText('mun');
|
|
|
+ expect($('.fc-agendaDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-agendaWeek-button')).toHaveText('wiki');
|
|
|
+ expect($('.fc-basicDay-button')).toHaveText('dei');
|
|
|
+ expect($('.fc-basicWeek-button')).toHaveText('wiki');
|
|
|
});
|
|
|
|
|
|
});
|