| <p>Tests for image elements firing their load events even when they're not in the document.</p> |
| <script src="../../resources/js-test-pre.js"></script> |
| return document.getElementById(id); |
| $("console").appendChild(document.createTextNode(s + "\n")); |
| image.src = "resources/apple.gif"; |
| image.onload = function () { |
| testRunner.waitUntilDone(); |
| image.src = "resources/apple.gif"; |
| image.onload = function () { // Wait for the image to load so subsequent loads will be synchronous. |
| for (var i = 0; i < 10; ++i) |