blob: e036b32375adbae265e8f7fcd82744a1e659b964 [file] [log] [blame]
commit-queue@webkit.org6893f662011-04-21 01:28:30 +00001<html>
2<head>
3
4<style>
5.editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9}
10</style>
rniwa@webkit.org26407082016-05-28 19:18:48 +000011<script src="../../LayoutTests/editing/editing.js"></script>
commit-queue@webkit.org6893f662011-04-21 01:28:30 +000012
13<script>
14
15function editingTest() {
16 textarea = document.getElementById('test');
17 textarea.focus();
18 document.execCommand("InsertText", false, "this brougt");
rniwa@webkit.org26407082016-05-28 19:18:48 +000019 setTimeout(function () {
20 typeCharacterCommand(' ');
21 setTimeout(function () {
22 document.execCommand("Delete");
23 document.execCommand("Delete");
24 }, 100);
25 }, 100);
commit-queue@webkit.org6893f662011-04-21 01:28:30 +000026}
27
28</script>
29
30<title>Removing misspelling marker after appending letter test.</title>
31</head>
32<body>
rniwa@webkit.org26407082016-05-28 19:18:48 +000033<div>The test verified that misspelling marker is removed after accepting a correction. You should see the phrase "this brough" without red underline.</div>
34<p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'brought' as the correct spelling of 'brougt' several times, the spell checker will not provide 'notational' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.</p>
commit-queue@webkit.org6893f662011-04-21 01:28:30 +000035<textarea id="test" cols="80" rows="10"></textarea>
36</div>
37
38
39<script>
40runEditingTest();
41</script>
42
43</body>
44</html>