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

  pushOptions({
    defaultDate: '2014-06-04',
    events: [ {
      title: 'my event',
      start: '2014-06-04T15:00:00',
      end: '2014-06-04T17:00:00'
    } ]
  })

  function getRenderedEventTime() {
    return $('.fc-event:first .fc-time').text()
  }

  describe('when in month view', function() {

    pushOptions({
      defaultView: 'dayGridMonth'
    })

    it('renders correctly when default', function() {
      initCalendar()
      expect(getRenderedEventTime()).toBe('3p')
    })

    it('renders correctly when default and the locale is customized', function() {
      initCalendar({
        locale: 'en-gb'
      })
      expect(getRenderedEventTime()).toBe('15')
    })

    it('renders correctly when customized', function() {
      initCalendar({
        eventTimeFormat: { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }
      })
      expect(getRenderedEventTime()).toBe('15:00:00')
    })
  })

  describe('when in week view', function() {

    pushOptions({
      defaultView: 'timeGridWeek'
    })

    it('renders correctly when default', function() {
      initCalendar()
      expect(getRenderedEventTime()).toBe('3:00 - 5:00')
    })

    it('renders correctly when default and the locale is customized', function() {
      initCalendar({
        locale: 'en-gb'
      })
      expect(getRenderedEventTime()).toBe('15:00 - 17:00')
    })

    it('renders correctly when customized', function() {
      initCalendar({
        eventTimeFormat: { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }
      })
      expect(getRenderedEventTime()).toBe('15:00:00 - 17:00:00')
    })
  })

  describe('when in multi-day custom dayGrid view', function() {

    pushOptions({
      views: {
        dayGridTwoDay: {
          type: 'dayGrid',
          duration: { days: 2 }
        }
      },
      defaultView: 'dayGridTwoDay'
    })

    it('defaults to no end time', function() {
      initCalendar()
      expect(getRenderedEventTime()).toBe('3p')
    })
  })

  describe('when in dayGridDay view', function() {

    pushOptions({
      defaultView: 'dayGridDay'
    })


    it('defaults to showing the end time', function() {
      initCalendar()
      expect(getRenderedEventTime()).toBe('3p - 5p')
    })
  })
})

Anon7 - 2022
AnonSec Team