Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / shadow / delete-characters-in-distributed-node-crash.html
blob536cf060d0f82462f0feaa505d0343e62968f088
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
6 <script>
7 if (window.testRunner)
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";
17 </script>
18 </body>
19 </html>