blowfish/node_modules/packery/test/unit/hidden-items.js
2023-01-29 22:30:24 +00:00

8 lines
368 B
JavaScript

QUnit.test( 'hidden items', function( assert ) {
var container = document.querySelector('#hidden-items');
var pckry = new Packery( container );
var itemElem1 = pckry.items[1].element;
var itemElem2 = pckry.items[2].element;
assert.equal( itemElem1.style.left, '0px', '2nd item on left' );
assert.equal( itemElem2.style.top, '0px', '3rd item on top' );
});