%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 ListenerCounter from '../lib/ListenerCounter' describe('destroy', function() { describe('when calendar is LTR', function() { it('cleans up all classNames on the root element', function() { initCalendar({ dir: 'ltr' }) currentCalendar.destroy() expect($('#calendar')[0].className).toBe('') }) }) describe('when calendar is RTL', function() { it('cleans up all classNames on the root element', function() { initCalendar({ dir: 'rtl' }) currentCalendar.destroy() expect($('#calendar')[0].className).toBe('') }) }) describeOptions('themeSystem', { 'when bootstrap theme': 'bootstrap' }, function() { it('cleans up all classNames on the root element', function() { initCalendar() currentCalendar.destroy() expect($('#calendar')[0].className).toBe('') }) }) pushOptions({ defaultDate: '2014-12-01', droppable: true, // likely to attach document handler editable: true, // same events: [ { title: 'event1', start: '2014-12-01' } ] }) describeOptions('defaultView', { 'when in dayGridWeek view': 'dayGridWeek', 'when in week view': 'timeGridWeek', 'when in listWeek view': 'listWeek', 'when in month view': 'dayGridMonth' }, function(viewName) { it('leaves no handlers attached to DOM', function() { var $el = $('<div>').appendTo('body') var elHandlerCounter = new ListenerCounter($el[0]) var docHandlerCounter = new ListenerCounter(document) elHandlerCounter.startWatching() docHandlerCounter.startWatching() initCalendar({}, $el) currentCalendar.destroy() if (viewName !== 'timeGridDay') { // hack for skipping 3rd one expect(elHandlerCounter.stopWatching()).toBe(0) expect(docHandlerCounter.stopWatching()).toBe(0) } $el.remove() }) // Issue 2432 it('preserves existing window handlers when handleWindowResize is off', function() { var resizeHandler = function() {} var windowListenerCounter = new ListenerCounter(window) windowListenerCounter.startWatching() window.addEventListener('resize', resizeHandler) expect(windowListenerCounter.computeDelta()).toBe(1) initCalendar({ handleWindowResize: false }) currentCalendar.destroy() expect(windowListenerCounter.stopWatching()).toBe(1) window.removeEventListener('resize', resizeHandler) }) }) })