blob: 42d7e48eeb4af92eb71b237fec56c01e28be419b (
plain) (
tree)
|
|
QUnit.test( 'single element', function( assert ) {
'use strict';
var elem = document.querySelector('#mario-with-shell');
var done = assert.async();
imagesLoaded( elem ).on( 'done', function( obj ) {
assert.ok( true, 'single element worked' );
assert.ok( obj.images, 'argument has images' );
assert.equal( obj.images.length, 1, 'images.length = 1' );
done();
});
});
|