Reviewed by Oliver.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 11:33:56 +0000 (11:33 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2007 11:33:56 +0000 (11:33 +0000)
        http://bugs.webkit.org/show_bug.cgi?id=15248
        Can not enter accented characters using alt-numeric keypad

        * platform/win/fast/events/alt-numpad-expected.txt: Added.
        * platform/win/fast/events/alt-numpad.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28647 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/win/fast/events/alt-numpad-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/events/alt-numpad.html [new file with mode: 0755]

index c7d412d..9aed05d 100644 (file)
@@ -1,3 +1,13 @@
+2007-12-12  Alexey Proskuryakov  <ap@webkit.org>
+
+        Reviewed by Oliver.
+
+        http://bugs.webkit.org/show_bug.cgi?id=15248
+        Can not enter accented characters using alt-numeric keypad
+
+        * platform/win/fast/events/alt-numpad-expected.txt: Added.
+        * platform/win/fast/events/alt-numpad.html: Added.
+
 2007-12-12  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Maciej.
diff --git a/LayoutTests/platform/win/fast/events/alt-numpad-expected.txt b/LayoutTests/platform/win/fast/events/alt-numpad-expected.txt
new file mode 100644 (file)
index 0000000..97d1c05
--- /dev/null
@@ -0,0 +1,3 @@
+Test for bug 15248: Can not enter accented characters using alt-numeric keypad.
+
+2
diff --git a/LayoutTests/platform/win/fast/events/alt-numpad.html b/LayoutTests/platform/win/fast/events/alt-numpad.html
new file mode 100755 (executable)
index 0000000..a530f10
--- /dev/null
@@ -0,0 +1,24 @@
+<body>
+    <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15248">bug 15248</a>:
+        Can not enter accented characters using alt-numeric keypad.
+    </p>
+    <div contenteditable id=ce></div>
+    <script>
+        document.getElementById("ce").focus();
+
+        if (window.layoutTestController) {
+            layoutTestController.dumpAsText();
+
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 18 /* Alt */, 0x20380001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 45 /* Num Pad 0 */, 0x20520001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 45 /* Num Pad 0 */, 0xe0520001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 12 /* Num Pad 5 */, 0x204c0001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 12 /* Num Pad 5 */, 0xe04c0001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 45 /* Num Pad 0 */, 0x20520001);
+            eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 45 /* Num Pad 0 */, 0xe0520001);
+            eventSender.dispatchMessage(eventSender.WM_KEYUP, 18 /* Alt */, 0xc038001);
+            eventSender.dispatchMessage(eventSender.WM_CHAR, 50 /* '2' */, 0xe0520001);
+        } else
+            document.write("To test manually, type Alt+050 on numpad. Character '2' should be inserted into active text input.");
+    </script>
+</body>