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.
12 lines
392 B
12 lines
392 B
6 years ago
|
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();
|
||
|
});
|
||
|
});
|