<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<HEAD>
    <meta http-equiv="Content-Type" content="text/html;charset=Shift_JIS">
</HEAD>
<body onload="test()">
    <p>Test encoding of mailto URLs. Click on the URL - a new message
    with Japanese subject and body should open in your mail client.</p>

    <a href="mailto:?subject=^Cg&body={">
    <span>Subject : Japanese   Body : Japanese</span>
    </a>

<script>
function test() {
  if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitForPolicyDelegate();
    var a = document.getElementsByTagName("a")[0];
    eventSender.mouseMoveTo(a.offsetLeft + 5, a.offsetTop + 5);
    eventSender.mouseDown();
    eventSender.mouseUp();
  }
}
</script>

</body>
</html>
