1 <p>This tests for a bug where centering two paragraphs would center the third. Only the selected paragraphs should be selected.
</p>
2 <div id=
"div" contenteditable=
"true">foo
<div>bar
<br>baz
</div>
6 internals
.settings
.setEditingBehavior('mac');
7 var div
= document
.getElementById("div");
8 var sel
= window
.getSelection();
11 sel
.modify("extend", "forward", "word");
12 sel
.modify("extend", "forward", "paragraph");
14 document
.execCommand("JustifyCenter");