blob: 05106106509fe8586110f0a49af3f3b3afd2fa0b [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script src="spellcheck_test.js"></script>
<script>
spellcheck_test(
'<div contenteditable>You has the right.|</div>',
'',
'<div contenteditable>You ~has~ the right.</div>',
{
title: 'Has marker on ungrammatical initial text',
callback: sample => spellcheck_test(
sample,
() => {
// Delete the end of this sentence until it becomes 'You ha'.
for (let i = 0; i < 12; ++i)
testRunner.execCommand('DeleteBackward');
},
'<div contenteditable>You ha</div>',
'Remove grammar markers when editing a grammatically-incorrect word.')
});
</script>