blob: 8c43c4bef7b6c8cf51179051a9a541e63192af29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
QUnit.test( 'selector string', function( assert ) {
'use strict';
var images = document.querySelectorAll('#basics img');
var done = assert.async();
var imgLoad = imagesLoaded('#basics', { debug: true }).on( 'done', function( obj ) {
assert.ok( true, 'selector string worked' );
assert.ok( obj.images, 'argument has images' );
assert.equal( obj.images.length, images.length, 'images.length matches' );
done();
});
assert.ok( imgLoad.options.debug, 'debug option set' );
});
|