Home | History | Annotate | Download | only in encoding
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      2 <html lang="ja">
      3 <HEAD>
      4     <meta http-equiv="Content-Type" content="text/html;charset=Shift_JIS">
      5 </HEAD>
      6 <body onload="test()">
      7     <p>Test encoding of mailto URLs. Click on the URL - a new message
      8     with Japanese subject and body should open in your mail client.</p>
      9 
     10     <a href="mailto:?subject=^Cg&body={">
     11     <span>Subject : Japanese   Body : Japanese</span>
     12     </a>
     13 
     14 <script>
     15 function test() {
     16   if (window.layoutTestController) {
     17     layoutTestController.dumpAsText();
     18     layoutTestController.waitForPolicyDelegate();
     19     var a = document.getElementsByTagName("a")[0];
     20     eventSender.mouseMoveTo(a.offsetLeft + 5, a.offsetTop + 5);
     21     eventSender.mouseDown();
     22     eventSender.mouseUp();
     23   }
     24 }
     25 </script>
     26 
     27 </body>
     28 </html>
     29