From c667572d3eedb0c31b29a4c469b378ccdcee0ba1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 25 Nov 2018 10:09:26 +0100 Subject: update imagesloaded to version 4.1.4 via composer --- vendor/desandro/imagesloaded/test/unit/selector-string.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/desandro/imagesloaded/test/unit/selector-string.js (limited to 'vendor/desandro/imagesloaded/test/unit/selector-string.js') diff --git a/vendor/desandro/imagesloaded/test/unit/selector-string.js b/vendor/desandro/imagesloaded/test/unit/selector-string.js new file mode 100644 index 000000000..8c43c4bef --- /dev/null +++ b/vendor/desandro/imagesloaded/test/unit/selector-string.js @@ -0,0 +1,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' ); +}); -- cgit v1.2.3