QUnit.test( 'background', function( assert ) {
  'use strict';

  var done = assert.async( 9 );

  var imgLoad0 = imagesLoaded( '#background .tulip', { background: true }, function() {
    assert.ok( true, 'callback triggered on .orange-tree');
    assert.equal( imgLoad0.images.length, 1, '1 image on .images' );
    done();
  });

  var imgLoad1 = imagesLoaded( '#background .thunder-cloud', { background: true }, function() {
    assert.ok( true, 'callback triggered on .thunder-cloud');
    assert.equal( imgLoad1.images.length, 1, '1 image on .images' );
    done();
  });

  // multiple backgrounds
  var imgLoad2 = imagesLoaded( '#background .multi', { background: true }, function() {
    assert.ok( true, 'callback triggered on .multi');
    assert.equal( imgLoad2.images.length, 3, '3 images on .images' );
    done();
  });

  // multiple elements
  var imgLoad3 = imagesLoaded( '#background .bg-box', { background: true }, function() {
    assert.ok( true, 'callback triggered on .bg-box');
    assert.equal( imgLoad3.images.length, 5, '5 images on .bg-box' );
    done();
  });

  imgLoad3.on('progress', function( instance, image, element ) {
    assert.ok( true, 'progress on .bg-box; ' + image.img.src );
    assert.equal( image.isLoaded, true, 'image.isLoaded == true' );
    done();
  });

});
@@ -57,16 +57,319 @@
 rict';%0A%0A
+  // from Modernizr%0A  var supportsMultiBGs = ( function() %7B%0A    var style = document.createElement('a').style;%0A    style.cssText = 'background:url(https://),url(https://),red url(https://)';%0A    return (/(url%5Cs*%5C(.*?)%7B3%7D/).test(style.background);%0A  %7D)();%0A%0A  var multiBGCount = supportsMultiBGs ? 3 : 0;%0A
   var do
@@ -391,9 +391,24 @@
 nc( 
-9
+6 + multiBGCount
  );%0A
@@ -1104,20 +1104,48 @@
 th, 
-3, '3 images
+multiBGCount, 'correct multiple BG count
  on 
@@ -1338,24 +1338,58 @@
  .bg-box');%0A
+    var count = 2 + multiBGCount;%0A
     assert.e
@@ -1422,13 +1422,24 @@
 th, 
-5, '5
+count, count + '
  ima
@@ -1669,24 +1669,96 @@
 == true' );%0A
+    assert.equal( element.nodeName, 'DIV', 'element is DIV, not IMG' );%0A
     done();%0A
@@ -1764,11 +1764,12 @@
 %0A  %7D);%0A%0A
-
 %7D);
+%0A

check for multiple BG support for IE8