Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / insert-div-text-into-text.html
blob0b38ed8984c2b48d155fbe88a5ce16a4221b2bf3
1 <!DOCTYPE>
2 <html>
3 <body>
4 <div id="test" contenteditable="true">There&nbsp; be no line breaks in this sentence.</div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
8 if (window.testRunner)
9 testRunner.dumpEditingCallbacks();
10 if (window.internals)
11 internals.settings.setEditingBehavior('mac');
13 Markup.description('This tests inserting a text wrapped in a div inside a text node.');
15 var sel = window.getSelection();
16 var e = document.getElementById("test").firstChild;
18 sel.collapse(e, 0);
19 sel.modify("move", "forward", "word");
20 sel.modify("move", "forward", "character");
21 document.execCommand("InsertHTML", false, "<div>should</div>");
23 Markup.dump('test');
24 </script>
25 </body>
26 </html>