Reviewed by Darin.
[WebKit-https.git] / LayoutTests / platform / win / fast / events / double-dead-char.html
1 <body>
2     <p>Test for <a href="rdar://problem/5535636">rdar://problem/5535636</a>:
3     Have to press 4 times instead of 2 times to get the expected result of ^^
4     with German keyboard.
5 </p>
6 <div contenteditable id=ce></div>
7 <script>
8     if (window.layoutTestController) {
9         layoutTestController.dumpAsText();
10         document.getElementById("ce").focus();
11
12         eventSender.dispatchMessage(eventSender.WM_KEYDOWN, 220 /* VK_OEM_5 */, 0x00290001);
13         eventSender.dispatchMessage(eventSender.WM_DEADCHAR, 94 /* '^' */, 0x00290001);
14         eventSender.dispatchMessage(eventSender.WM_KEYUP, 220, 0xc0290001);
15         eventSender.dispatchMessage(eventSender.WM_KEYDOWN, 220, 0x00290001);
16         eventSender.dispatchMessage(eventSender.WM_CHAR, 94, 0x00290001);
17         eventSender.dispatchMessage(eventSender.WM_CHAR, 94, 0x00290001);
18         eventSender.dispatchMessage(eventSender.WM_KEYUP, 220, 0xc0290001);
19     } else
20         document.write("To test manually, switch to German keyboard layout, and press circumflex key two times " +
21             "(on my MBP with Russian physical keyboard, it is located to the left of 1).");
22 </script>
23 </body>