UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

10 lines (7 loc) 218 B
StartTest(function(t) { // Should trigger a fail document.body.innerHTML = '<img id="img"/>' var img = document.getElementById('img'); t.waitForEvent(img, 'error') img.src = "foo.png" });