!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/outlayer/test/unit/   drwxrwxr-x
Free 13.18 GB of 57.97 GB (22.74%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     declarative.js (3.79 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
QUnit.test( 'declarative', function( assert ) {
  var $ = window.jQuery;

  // data-cells-by-row, no data-cells-by-row-options
  ( function() {
    var container = document.querySelector('#declarative-attr');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( cellsLayout instanceof CellsByRow, '.data() works, retrieves instance' );
    assert.deepEqual( cellsLayout.options, CellsByRow.defaults, 'options match defaults' );
    assert.ok( cellsLayout._isLayoutInited, 'cellsLayout._isLayoutInited' );
    var itemElem = cellsLayout.items[0].element;
    assert.equal( itemElem.style.left, '0px', 'first item style left set' );
    assert.equal( itemElem.style.top, '0px', 'first item style top set' );
  })();

  // data-cells-by-row, has data-cells-by-row-options, but bad JSON
  ( function() {
    var container = document.querySelector('#declarative-attr-bad-json');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( !cellsLayout, 'bad JSON in data-cells-by-row-options does not init CellsByRow' );
    assert.ok( !container.outlayerGUID, 'no expando property on element' );
  })();

  // data-cells-by-row, has good data-packery-options
  ( function() {
    var container = document.querySelector('#declarative-attr-good-json');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( cellsLayout instanceof CellsByRow, '.data() got CellByRow instance retrieved from element, with good JSON in data-cells-by-row-options' );
    assert.strictEqual( cellsLayout.options.columnWidth, 25, 'columnWidth option was set' );
    assert.strictEqual( cellsLayout.options.rowHeight, 30, 'rowHeight option was set' );
    assert.strictEqual( cellsLayout.options.isResizable, false, 'isResizable option was set' );
    assert.strictEqual( cellsLayout.options.foo, 'bar', 'foo option was set' );

    assert.equal( $.data( container, 'cellsByRow' ), cellsLayout, 'jQuery.data( elem, "cellsByRow") returns CellsByRow instance' );
  })();

  // js-cells-by-row, no data-cells-by-row-options
  ( function() {
    var container = document.querySelector('#declarative-js-class');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( cellsLayout instanceof CellsByRow, '.data() works, retrieves instance' );
    assert.deepEqual( cellsLayout.options, CellsByRow.defaults, 'options match defaults' );
    assert.ok( cellsLayout._isLayoutInited, 'cellsLayout._isLayoutInited' );
    var itemElem = cellsLayout.items[0].element;
    assert.equal( itemElem.style.left, '0px', 'first item style left set' );
    assert.equal( itemElem.style.top, '0px', 'first item style top set' );
  })();

  // js-cells-by-row, has data-cells-by-row-options, but bad JSON
  ( function() {
    var container = document.querySelector('#declarative-js-class-bad-json');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( !cellsLayout, 'bad JSON in data-cells-by-row-options does not init CellsByRow' );
    assert.ok( !container.outlayerGUID, 'no expando property on element' );
  })();

  // js-cells-by-row, has good data-packery-options
  ( function() {
    var container = document.querySelector('#declarative-js-class-good-json');
    var cellsLayout = CellsByRow.data( container );
    assert.ok( cellsLayout instanceof CellsByRow, '.data() got CellByRow instance retrieved from element, with good JSON in data-cells-by-row-options' );
    assert.strictEqual( cellsLayout.options.columnWidth, 25, 'columnWidth option was set' );
    assert.strictEqual( cellsLayout.options.rowHeight, 30, 'rowHeight option was set' );
    assert.strictEqual( cellsLayout.options.isResizable, false, 'isResizable option was set' );
    assert.strictEqual( cellsLayout.options.foo, 'bar', 'foo option was set' );

    assert.equal( $.data( container, 'cellsByRow' ), cellsLayout, 'jQuery.data( elem, "cellsByRow") returns CellsByRow instance' );
  })();

});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]--