Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / autocorrection / close-window-when-correction-is-shown.html
blob5c82a20f5815f7a37c9e594ca77ff6209a0548b4
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 </style>
11 <script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
13 <script>
14 function editingTest() {
15 typeCharacterCommand('t');
16 typeCharacterCommand('h');
17 typeCharacterCommand('e');
18 typeCharacterCommand(' ');
19 typeCharacterCommand('m');
20 typeCharacterCommand('e');
21 typeCharacterCommand('s');
22 typeCharacterCommand('a');
23 typeCharacterCommand('e');
24 typeCharacterCommand('g');
25 typeCharacterCommand('e');
26 typeCharacterCommand('e');
27 typeCharacterCommand(' ');
28 execMoveSelectionBackwardByCharacterCommand();
31 </script>
33 <title>Testing closing window when correction suggestion is shown</title>
34 </head>
35 <body>
36 <div><p>This test verifies that when correction suggestion is visible, closing window doesn't hang or crash.</p>
37 <p>After seeing the panel with multiple candidates, close the window.</p>
38 <div contenteditable id="root" class="editing">
39 <span id="test"></span>
40 </div>
43 <script>
44 runEditingTest();
45 </script>
47 </body>
48 </html>