Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3 OR http2
- Manifest: image/test/mochitest/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="initializeOnload()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1180105">Mozilla Bug 1180105</a>
<p id="display"></p>
<pre id="test">
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
function initializeOnload() {
var firstimg = document.createElement('img');
document.getElementById('content').appendChild(firstimg);
waitForFinish();
}
function waitForFinish() {
var loader = document.getElementById("loader");
loader.src = WAITER_URL;
loader.onload = function() {
var img = document.getElementsByTagName('img')[0];
ok(img.width > 0, "Image should be loaded by now");
SimpleTest.finish();
};
}
</script>
</pre>
<div id="content">>
<iframe id="loader"></iframe>
</div>
</body>
</html>