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

  describe('when using default', function() {
    beforeEach(function() {
      initCalendar()
    })
    it('should show 7 days of the week', function() {
      var daysCount = $('.fc-day-header').length
      expect(daysCount).toEqual(7)
    })
  })

  describe('when setting an empty hiddenDays', function() {
    beforeEach(function() {
      initCalendar({
        hiddenDays: []
      })
    })
    it('should return 7 days of the week', function() {
      var daysCount = $('.fc-day-header').length
      expect(daysCount).toEqual(7)
    })
  })

  describe('when setting hiddenDays with 1', function() {
    beforeEach(function() {
      initCalendar({
        hiddenDays: [ 1 ]
      })
    })
    it('should return 6 days', function() {
      var daysCount = $('.fc-day-header').length
      expect(daysCount).toEqual(6)
    })
    it('should return sun,tue,wed..sat days', function() {
      var daysOfWeek = $('.fc-day-header')
      expect(daysOfWeek[0]).toHaveClass('fc-sun')
      expect(daysOfWeek[1]).toHaveClass('fc-tue')
      expect(daysOfWeek[5]).toHaveClass('fc-sat')
    })
    it('should expect 7th day to be undefined', function() {
      var daysOfWeek = $('.fc-day-header')
      expect(daysOfWeek[6]).toBeUndefined()
    })
  })

  describe('when setting hiddenDays with 3,5', function() {
    beforeEach(function() {
      initCalendar({
        hiddenDays: [ 3, 5 ]
      })
    })
    it('should return 6 days', function() {
      var daysCount = $('.fc-day-header').length
      expect(daysCount).toEqual(5)
    })
    it('should return s,m,t,t,s ', function() {
      var daysOfWeek = $('.fc-day-header')
      expect(daysOfWeek[0]).toHaveClass('fc-sun')
      expect(daysOfWeek[1]).toHaveClass('fc-mon')
      expect(daysOfWeek[2]).toHaveClass('fc-tue')
      expect(daysOfWeek[3]).toHaveClass('fc-thu')
      expect(daysOfWeek[4]).toHaveClass('fc-sat')
    })
    it('should expect wed and fri be undefined', function() {
      var fri = $('.fc-day-header.fc-fri')[0]
      var wed = $('.fc-day-header.fc-wed')[0]
      expect(fri).toBeUndefined()
      expect(wed).toBeUndefined()
    })
  })

  describe('when setting all hiddenDays', function() {
    it('should expect to throw an exception', function() {
      expect(function() {
        initCalendar({
          hiddenDays: [ 0, 1, 2, 3, 4, 5, 6 ]
        })
      }).toThrow(new Error('invalid hiddenDays'))
    })
  })
})

Anon7 - 2022
AnonSec Team