<body>
<div id="result">Testing...</div>
<img src="compass-no-cache.jpg" onload="done()">
<script>
function done() {
var img = document.getElementsByTagName("img")[0];
var result = document.getElementById("result");
result.innerHTML = img.width == 128 ? "PASS" : "FAIL - image not loaded";
if (window.testRunner)
testRunner.notifyDone();
}
</script>