<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// Fix for this bug: rdar://problem/3977962 font loses bold style after pasting
// next to existing text and pressing return.
selection_test(
'<div contenteditable><div>foo<b>|bar</b></div></div>',
'insertParagraph',
'<div contenteditable><div>foo</div><div><b>|bar</b></div></div>');
</script>