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

11 lines
323 B
JavaScript

test( 'single element', function() {
var elem = document.querySelector('#mario-with-shell');
stop();
imagesLoaded( elem ).on( 'done', function( obj ) {
ok( true, 'single element worked' );
ok( obj.images, 'argument has images' );
equal( obj.images.length, 1, 'images.length = 1' );
start();
});
});