<!DOCTYPE HTML><html><!--https://bugzilla.mozilla.org/show_bug.cgi?id=1180105--><head><title>Test for Bug 1180105</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/></head><bodyonload="initializeOnload()"><atarget="_blank"href="https://bugzilla.mozilla.org/show_bug.cgi?id=1180105">Mozilla Bug 1180105</a><pid="display"></p><preid="test"><scripttype="application/javascript">SimpleTest.waitForExplicitFinish();constWAITER_URL="bug1180105-waiter.sjs";functioninitializeOnload(){varfirstimg=document.createElement('img');firstimg.src="bug1180105.sjs";document.getElementById('content').appendChild(firstimg);waitForFinish();}functionwaitForFinish(){varloader=document.getElementById("loader");loader.src=WAITER_URL;loader.onload=function(){varimg=document.getElementsByTagName('img')[0];ok(img.width>0,"Image should be loaded by now");SimpleTest.finish();};}</script></pre><divid="content">><iframeid="loader"></iframe></div></body></html>