11 <p id=
"description"></p>
12 <div id=
"sample" contenteditable=
"true">
13 <p class=
"li" id=
"e0">Zero
</p>
14 <p class=
"li" id=
"e1">One
</p>
15 <p class=
"li" id=
"e2">Two
</p>
16 <p class=
"li" id=
"e3"><br></p>
17 <p class=
"li" id=
"e4"><br></p>
18 <p class=
"li" id=
"e5"><br></p>
21 <div id=
"console"></div>
22 <script src=
"../../resources/js-test.js"></script>
24 description('Delete key should not remove extra nodes');
25 function $(id
) { return document
.getElementById(id
); }
27 var range
= document
.createRange();
28 range
.setStart($('e5'), 1);
29 var selection
= window
.getSelection();
30 selection
.removeAllRanges();
31 selection
.addRange(range
);
32 document
.execCommand('Delete', true);
33 shouldBe('document.querySelectorAll("p.li").length', '5');
34 if (window
.testRunner
)
35 $('container').outerHTML
= '';