Candidates that don't end in spaces shouldn't have spaces arbitrarily appended to...
[WebKit-https.git] / LayoutTests / editing / mac / spelling / accept-candidate-without-adding-space.html
1 <html>
2 <head>
3 <script src=../../editing.js></script>
4 <script src="../../../resources/js-test-pre.js"></script>
5 <script>
6
7 function editingTest() {
8     edit = document.getElementById('edit');
9     edit.focus();
10     typeCharacterCommand('s');
11     typeCharacterCommand('i');
12     
13     if (window.internals)
14         internals.handleAcceptedCandidate("is", 0, 2);
15
16     if (window.testRunner)
17         testRunner.dumpAsText(true);
18 }
19
20 </script>
21 </head>
22 <body>
23 <p>This test verifies that accepted candidates that do not have spaces don't add them.</p>
24 <div style="border:1px solid black;">
25     <div contenteditable="true" id="edit"></div>
26 </div>
27 <script>
28 runEditingTest();
29 </script>
30 <script src="../../../resources/js-test-post.js"></script>
31 </body>
32 </html>