%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.146 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/toolbar/ |
Upload File : |
/* TODO: - quick test for when button is clicked SEE ALSO: - other range intersection tests handled by next-button */ import { expectButtonEnabled } from './ToolbarUtils' describe('prev button', function() { pushOptions({ defaultView: 'timeGridWeek', defaultDate: '2017-06-08' }) describe('when there is no specified validRange', function() { it('is enabled', function() { initCalendar() expectButtonEnabled('prev', true) }) }) describe('when prev date range is completely before validRange', function() { pushOptions({ validRange: { start: '2018-06-12' }, dateIncrement: { years: 1 } // prev range is 2016-06-05 - 2016-06-12 }) it('is disabled', function() { initCalendar() expectButtonEnabled('prev', false) }) }) describe('when month view', function() { pushOptions({ defaultView: 'dayGridMonth', defaultDate: '2017-03-01', validRange: { start: '2017-02-07' }, dateIncrement: { years: 1 } // prev range is 2016-06-05 - 2016-06-12 }) it('when prev date range is partially before validRange', function() { initCalendar() expectButtonEnabled('prev', false) }) }) describe('when day before current day is a hidden day', function() { pushOptions({ defaultDate: '2017-03-27', defaultView: 'dayGridDay', weekends: false, dateIncrement: { years: 1 } // prev range is 2016-06-05 - 2016-06-12 }) it('is enabled', function() { initCalendar() expectButtonEnabled('prev', true) }) }) describe('when defaultDate is constrained backward to validRange and prev week is valid', function() { pushOptions({ defaultDate: '2017-07-17', defaultView: 'timeGridWeek', validRange: { start: '2017-03-20', end: '2017-03-30' } }) it('is enabled', function() { initCalendar() expectButtonEnabled('prev', true) }) }) })