<!DOCTYPE HTML>
<body>
<img height="100" width="100" src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" usemap="#map">
<map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javascript:document.getElementById('result').innerHTML='area clicked'"></map>
<div id="result">no area click seen yet</div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
eventSender.mouseMoveTo(50, 50);
eventSender.mouseDown();
eventSender.mouseUp();
}
</script>
</body>