mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
409 B
14 lines
409 B
window.checkItemPositions = function( msnry, positions ) { |
|
var i = 0; |
|
var position = positions[i]; |
|
while ( position ) { |
|
var style = msnry.items[i].element.style; |
|
for ( var prop in position ) { |
|
var value = position[ prop ] + 'px'; |
|
var message = 'item ' + i + ' ' + prop + ' = ' + value; |
|
equal( style[ prop ], value, message ); |
|
} |
|
i++; |
|
position = positions[i]; |
|
} |
|
};
|
|
|