%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/legacy/ |
Upload File : |
import { getSingleEl, getEventElTimeEl } from '../event-render/EventRenderUtils' describe('displayEventEnd', function() { pushOptions({ defaultDate: '2014-06-13', timeZone: 'UTC', eventTimeFormat: { hour: 'numeric', minute: '2-digit' } }) describeOptions('defaultView', { 'when in month view': 'dayGridMonth', 'when in week view': 'timeGridWeek' }, function() { describe('when off', function() { pushOptions({ displayEventEnd: false }) describe('with an all-day event', function() { it('displays no time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13', end: '2014-06-13', allDay: true } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl()).length).toBe(0) done() } }) }) }) describe('with a timed event with no end time', function() { it('displays only the start time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13T01:00:00', allDay: false } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl())).toHaveText('1:00 AM') done() } }) }) }) describe('with a timed event with an end time', function() { it('displays only the start time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13T01:00:00', end: '2014-06-13T02:00:00', allDay: false } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl())).toHaveText('1:00 AM') done() } }) }) }) }) describe('when on', function() { pushOptions({ displayEventEnd: true }) describe('with an all-day event', function() { it('displays no time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13', end: '2014-06-13', allDay: true } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl()).length).toBe(0) done() } }) }) }) describe('with a timed event with no end time', function() { it('displays only the start time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13T01:00:00', allDay: false } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl())).toHaveText('1:00 AM') done() } }) }) }) describe('with a timed event given an invalid end time', function() { it('displays only the start time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13T01:00:00', end: '2014-06-13T01:00:00', allDay: false } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl())).toHaveText('1:00 AM') done() } }) }) }) describe('with a timed event with an end time', function() { it('displays both the start and end time text', function(done) { initCalendar({ events: [ { title: 'timed event', start: '2014-06-13T01:00:00', end: '2014-06-13T02:00:00', allDay: false } ], _eventsPositioned: function() { expect(getEventElTimeEl(getSingleEl())).toHaveText('1:00 AM - 2:00 AM') done() } }) }) }) }) }) })