| <script src="../../resources/js-test-pre.js"></script> |
| description("Test rejecting the decode() promise when loading the image fails."); |
| debug("Failed to decode image with no source. Result is: " + reason); |
| image.src = "wrongname.png"; |
| debug("Failed to decode image with non-existent source. Result is: " + reason); |
| image.src = "100x100-red.psd"; |
| debug("Failed to decode image with unsupported image format. Result is: " + reason); |
| image.src = "https://server:80a80/"; |
| debug("Failed to decode image with invalid URL. Result is: " + reason); |
| <script src="../../resources/js-test-post.js"></script> |