%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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 : |
import BootstrapPlugin from '@fullcalendar/bootstrap' import TimeGridPlugin from '@fullcalendar/timegrid' describe('themeSystem', function() { pushOptions({ plugins: [ BootstrapPlugin, TimeGridPlugin ], defaultView: 'timeGridWeek' }) it('can be changed dynamically', function() { initCalendar() expect($('.fc')).toHaveClass('fc-unthemed') expect($('.fc')).not.toHaveClass('fc-bootstrap') expect($('.fc-toolbar button .fc-icon').length).toBeGreaterThan(0) expect($('.fc-toolbar button .fa').length).toBe(0) // FontAwesome icon expect($('.table-bordered').length).toBe(0) $('.fc-scroller').scrollTop(99999) // scroll all the way down var scrollTop = $('.fc-scroller').scrollTop() // change option! currentCalendar.setOption('themeSystem', 'bootstrap') expect($('.fc')).toHaveClass('fc-bootstrap') expect($('.fc')).not.toHaveClass('fc-unthemed') expect($('.fc-toolbar button .fc-icon').length).toBe(0) expect($('.fc-toolbar button .fa').length).toBeGreaterThan(0) // FontAwesome icon expect($('.table-bordered').length).toBeGreaterThan(0) // similar scroll state after the change expect(Math.abs(scrollTop - $('.fc-scroller').scrollTop())).toBeLessThan(5) }) // this tests the options setter with a single hash argument. // TODO: not best place for this. it('can be change with other options', function() { initCalendar() expect($('.fc')).toHaveClass('fc-unthemed') expect($('.fc')).not.toHaveClass('fc-bootstrap') expect($('.fc-nonbusiness').length).toBe(0) // change option! currentCalendar.batchRendering(function() { currentCalendar.setOption('themeSystem', 'bootstrap') currentCalendar.setOption('businessHours', true) }) expect($('.fc')).toHaveClass('fc-bootstrap') expect($('.fc')).not.toHaveClass('fc-unthemed') expect($('.fc-nonbusiness').length).toBeGreaterThan(0) }) })