blob: b937e3b1ace88dc6aeb4e64d789b1ed7d293fc3c [file] [log] [blame]
<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
test(() => assert_selection(
'<div contenteditable style="width: 300px; height: 250px; border: 1px solid black"><div><b>^<br></b></div><b>foo|</b></div>',
selection => {
selection.document.execCommand('cut');
selection.document.execCommand('paste');
},
'<div contenteditable style="width: 300px; height: 250px; border: 1px solid black"><br><div><b>foo|</b></div></div>'),
'Cut all tags and paste them');
</script>