Reviewed by Darin.
[WebKit-https.git] / LayoutTests / platform / win / fast / events / alt-numpad.html
1 <body>
2     <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=15248">bug 15248</a>:
3         Can not enter accented characters using alt-numeric keypad.
4     </p>
5     <div contenteditable id=ce></div>
6     <script>
7         document.getElementById("ce").focus();
8
9         if (window.layoutTestController) {
10             layoutTestController.dumpAsText();
11
12             eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 18 /* Alt */, 0x20380001);
13             eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 45 /* Num Pad 0 */, 0x20520001);
14             eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 45 /* Num Pad 0 */, 0xe0520001);
15             eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 12 /* Num Pad 5 */, 0x204c0001);
16             eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 12 /* Num Pad 5 */, 0xe04c0001);
17             eventSender.dispatchMessage(eventSender.WM_SYSKEYDOWN, 45 /* Num Pad 0 */, 0x20520001);
18             eventSender.dispatchMessage(eventSender.WM_SYSKEYUP, 45 /* Num Pad 0 */, 0xe0520001);
19             eventSender.dispatchMessage(eventSender.WM_KEYUP, 18 /* Alt */, 0xc038001);
20             eventSender.dispatchMessage(eventSender.WM_CHAR, 50 /* '2' */, 0xe0520001);
21         } else
22             document.write("To test manually, type Alt+050 on numpad. Character '2' should be inserted into active text input.");
23     </script>
24 </body>