(src)
| 468 | |
| 469 | |
| 470 | function assertNotLoaded(src) { |
| 471 | // loop through images |
| 472 | var imgs = document.getElementsByTagName('img'); |
| 473 | |
| 474 | Array.prototype.slice.call(imgs).forEach(function (img) { |
| 475 | // fail if image was loaded |
| 476 | if (img.src === src) assert.equal(img.naturalWidth, 0); |
| 477 | }); |
| 478 | } |
| 479 | |
| 480 | |
| 481 | it('should load one file', function (done) { |
no outgoing calls
no test coverage detected
searching dependent graphs…