Actually - I just saw this: https://github.com/mozilla-b2g/gaia/blob/master/apps/gallery/test/unit/lazy_loader_test.js#L60 (I think that was the test for this use-case, though the naming could be better I admit).