mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
18
node_modules/outlayer/test/unit/jquery-plugin.js
generated
vendored
Normal file
18
node_modules/outlayer/test/unit/jquery-plugin.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
QUnit.test( 'jQuery plugin', function( assert ) {
|
||||
var $ = window.jQuery;
|
||||
|
||||
var $elem = $('#jquery');
|
||||
assert.ok( $.fn.cellsByRow, '.cellsByRow is in jQuery.fn namespace' );
|
||||
assert.equal( typeof $elem.cellsByRow, 'function', '.cellsByRow is a plugin' );
|
||||
$elem.cellsByRow();
|
||||
var layout = $elem.data('cellsByRow');
|
||||
assert.ok( layout, 'CellsByRow instance via .data()' );
|
||||
assert.equal( layout, CellsByRow.data( $elem[0] ), 'instance matches the same one via CellsByRow.data()' );
|
||||
|
||||
// destroy and re-init
|
||||
$elem.cellsByRow('destroy');
|
||||
$elem.cellsByRow();
|
||||
assert.notEqual( $elem.data('cellsByRow'), layout, 'new CellsByRow instance after destroy' );
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user