blob: f6f16ea4166eb72175611aff862c8c97235fc12a [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect id="rect" width="100" height="100" fill="red" />
<svg onclick="hit()">
</svg>
<script>
<![CDATA[
var hitDetected = 0;
function hit() {
hitDetected = 1;
}
if (window.eventSender) {
eventSender.mouseMoveTo(200, 200);
eventSender.mouseDown();
eventSender.mouseUp();
if (hitDetected == 0) {
document.getElementById('rect').style.fill = 'green';
}
}
]]>
</script>
</svg>