<!DOCTYPE html>
<title>crbug.com/469678: We should fire an image load event even if the image is the last one we loaded successfully.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
var img = new Image();
var testImage = 'resources/green.jpg';
var resetImage = 'resources/bad-png.png';
// Load an image.
img.src = resetImage;
img.src = testImage;
// Make a request for a broken image which doesn't get the chance to
// complete before we attempt to load the same image again.
img.onload = t.step_func(function() {
img.src = resetImage;
img.src = testImage;
img.onload = t.step_func_done();
});
});
</script>