summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/encoding/mailto-always-utf-8.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/encoding/mailto-always-utf-8.html')
-rw-r--r--LayoutTests/fast/encoding/mailto-always-utf-8.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/fast/encoding/mailto-always-utf-8.html b/LayoutTests/fast/encoding/mailto-always-utf-8.html
new file mode 100644
index 0000000..0bb6206
--- /dev/null
+++ b/LayoutTests/fast/encoding/mailto-always-utf-8.html
@@ -0,0 +1,28 @@
+<!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=タイトル&body=本文">
+ <span>Subject : Japanese Body : Japanese</span>
+ </a>
+
+<script>
+function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitForPolicyDelegate();
+ var a = document.getElementsByTagName("a")[0];
+ eventSender.mouseMoveTo(a.offsetLeft + 5, a.offsetTop + 5);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+}
+</script>
+
+</body>
+</html>