Files
imagesloaded/test/selector-string.js
2013-05-23 07:17:11 -04:00

12 lines
425 B
JavaScript

test( 'selector string', function() {
stop();
var images = document.querySelectorAll('#basics img');
var imgLoad = imagesLoaded('#basics', { debug: true }).on( 'done', function( obj ) {
ok( true, 'selector string worked' );
ok( obj.images, 'argument has images' );
equal( obj.images.length, images.length, 'images.length matches' );
start();
});
ok( imgLoad.options.debug, 'debug option set' );
});