mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
This commit is contained in:
parent
37e90e3dfe
commit
214f5d9fc3
4949 changed files with 1393320 additions and 29 deletions
14
node_modules/flickity/test/unit/resize.js
generated
vendored
Normal file
14
node_modules/flickity/test/unit/resize.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
QUnit.test( 'resize', function( assert ) {
|
||||
|
||||
let elem = document.querySelector('#resize');
|
||||
let flkty = new Flickity( elem, {
|
||||
initialIndex: 2,
|
||||
} );
|
||||
elem.style.width = '500px';
|
||||
flkty.resize();
|
||||
|
||||
assert.equal( flkty.selectedIndex, 2, 'selectedIndex = 2' );
|
||||
assert.equal( flkty.cursorPosition, 250, 'cursorPosition = 250' );
|
||||
assert.equal( flkty.x + flkty.cursorPosition, -1000, 'x + cursorPosition = -1000' );
|
||||
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue