blob: 86d97075fad3a08d35595cc8a31540eb5260376e [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>
<input id=input>
<textarea id=textarea></textarea>
<script>
spellcheck_test(
'<input>',
document => {
const input = document.querySelector('input');
document.getSelection().setClipboardData('zz.');
input.focus();
document.execCommand('paste');
document.execCommand('paste');
input.blur();
},
'<input value="zz.zz.">',
'Markers should not be added to INPUT without focus.');
</script>