%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/event-data/ |
Upload File : |
describe('lazyFetching', function() { pushOptions({ timeZone: 'UTC', defaultView: 'dayGridMonth', defaultDate: '2017-10-04' }) describe('when on', function() { pushOptions({ lazyFetching: true }) it('won\'t fetch weeks already queried', function() { var arg var options = { events: function(arg, callback) { callback([]) } } spyOn(options, 'events').and.callThrough() initCalendar(options) currentCalendar.changeView('timeGridWeek') currentCalendar.next() currentCalendar.next() currentCalendar.next() expect(options.events.calls.count()).toBe(1) arg = options.events.calls.argsFor(0)[0] expect(arg.start).toEqualDate('2017-10-01T00:00:00Z') expect(arg.end).toEqualDate('2017-11-12T00:00:00Z') }) }) describe('when off', function() { pushOptions({ lazyFetching: false }) it('will fetch each new week range', function() { var arg var options = { events: function(arg, callback) { callback([]) } } spyOn(options, 'events') initCalendar(options) currentCalendar.changeView('timeGridWeek') currentCalendar.next() currentCalendar.next() currentCalendar.next() expect(options.events.calls.count()).toBe(5) arg = options.events.calls.argsFor(0)[0] expect(arg.start).toEqualDate('2017-10-01T00:00:00Z') expect(arg.end).toEqualDate('2017-11-12T00:00:00Z') arg = options.events.calls.argsFor(1)[0] expect(arg.start).toEqualDate('2017-10-01T00:00:00Z') expect(arg.end).toEqualDate('2017-10-08T00:00:00Z') arg = options.events.calls.argsFor(2)[0] expect(arg.start).toEqualDate('2017-10-08T00:00:00Z') expect(arg.end).toEqualDate('2017-10-15T00:00:00Z') arg = options.events.calls.argsFor(3)[0] expect(arg.start).toEqualDate('2017-10-15T00:00:00Z') expect(arg.end).toEqualDate('2017-10-22T00:00:00Z') arg = options.events.calls.argsFor(4)[0] expect(arg.start).toEqualDate('2017-10-22T00:00:00Z') expect(arg.end).toEqualDate('2017-10-29T00:00:00Z') }) }) })