mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
parent
37e90e3dfe
commit
214f5d9fc3
4949 changed files with 1393320 additions and 29 deletions
17
node_modules/flickity/test/unit/select-cell.js
generated
vendored
Normal file
17
node_modules/flickity/test/unit/select-cell.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
QUnit.test( 'selectCell', function( assert ) {
|
||||
|
||||
let gallery = document.querySelector('#select-cell');
|
||||
let cellElems = gallery.querySelectorAll('.cell');
|
||||
let flkty = new Flickity( gallery, {
|
||||
groupCells: true, // groups of 3
|
||||
} );
|
||||
|
||||
flkty.selectCell( 3 );
|
||||
assert.equal( flkty.selectedIndex, 1, 'selectCell number' );
|
||||
flkty.selectCell( cellElems[1] );
|
||||
assert.equal( flkty.selectedIndex, 0, 'selectCell element' );
|
||||
flkty.selectCell('.select-cell__6');
|
||||
assert.equal( flkty.selectedIndex, 2, 'selectCell selector string' );
|
||||
flkty.selectCell('none');
|
||||
assert.equal( flkty.selectedIndex, 2, 'selectCell bad string is okay' );
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue