blob: c879a9e3286dd9007cc24013f3b0cc5a75e53181 [file] [log] [blame]
function clickAnchor()
{
var event = document.createEvent('MouseEvent');
event.initEvent( 'click', true, true );
document.getElementById('anchorLink').dispatchEvent(event);
}
function didImageLoad()
{
var result = document.getElementById("result");
var myImg = document.getElementById("myImg");
if (myImg.height == 0 && myImg.width == 0) {
result.innerHTML = "Image NOT loaded.";
} else {
result.innerHTML = "Image loaded.";
}
}
function lastTest()
{
didImageLoad();
if (window.layoutTestController)
layoutTestController.notifyDone();
}