We could probably go a step further to test that onerror gets triggered by running resize on an image with a src that doesn't resolve, and inserting that image into the DOM to trigger the error hander.