4 <p id=
"description">This tests the deletion of text in distributed node does not crash. To run it outside of DRT, you must delete text, 'foo', manually.
</p>
5 <div id=
"wrapper"><div id=
"shadowhost" contenteditable
><div>foo
</div></div></div>
8 testRunner
.dumpAsText();
9 var shadowRoot
= document
.getElementById('shadowhost').createShadowRoot();
10 shadowRoot
.innerHTML
= "<content></content>";
12 var textNode
= document
.getElementById('shadowhost').firstChild
.firstChild
;
13 window
.getSelection().setBaseAndExtent(textNode
, 0, textNode
, 3);
14 document
.execCommand('Delete');
16 document
.getElementById("wrapper").innerHTML
= "PASS";