<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<div id="log"></div>
<script>
test(() => assert_selection(
'<div contenteditable>^foo|</div>',
selection => {
selection.document.execCommand('delete');
selection.document.execCommand('insertText', false, 'bar');
},
'<div contenteditable>bar|</div>'),
'Delete then insert text');
</script>