diff options
author | David DeSandro <desandrocodes@gmail.com> | 2014-04-22 21:02:28 -0400 |
---|---|---|
committer | David DeSandro <desandrocodes@gmail.com> | 2014-04-22 21:02:28 -0400 |
commit | 1ffe90c21c0b5a80ed0f2e96bb735a511b6b404f (patch) | |
tree | c5af20ebb4b0d0b388dc20d1612d869cdbecbda1 | |
parent | 182e3e4718cb552cfd631636335f0f26f6ac0387 (diff) | |
download | imagesloaded-1ffe90c21c0b5a80ed0f2e96bb735a511b6b404f.zip imagesloaded-1ffe90c21c0b5a80ed0f2e96bb735a511b6b404f.tar.gz imagesloaded-1ffe90c21c0b5a80ed0f2e96bb735a511b6b404f.tar.bz2 |
add test frag; Ref #145
-rw-r--r-- | test/non-element.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/non-element.js b/test/non-element.js index b999400..bc74160 100644 --- a/test/non-element.js +++ b/test/non-element.js @@ -8,6 +8,18 @@ test( 'dismiss non-element nodes', function() { .imagesLoaded(function() { ok( true, 'elements from jQuery string ok' ); start(); + testFrag(); }); + function testFrag() { + stop(); + var frag = document.createDocumentFragment(); + var img = new Image(); + img.src = 'http://lorempixel.com/403/303/'; + frag.appendChild( img ); + imagesLoaded( frag, function() { + ok( true, 'document fragment ok' ); + }); + } + }); |