grid programme

This commit is contained in:
2020-07-16 17:24:02 +02:00
parent ee476d177c
commit 08b0754135
134 changed files with 15445 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
QUnit.test( 'resize', function( assert ) {
'use strict';
var elem = document.querySelector('#resize');
var 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' );
});